Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rayz committed Oct 12, 2023
1 parent 4cb8a13 commit 96eba4f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/org/datadog/jmxfetch/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,10 @@ public void init(final boolean forceNewConnection) {
final String instanceName = (String) configInstance.get("name");
if (instanceName != null) {
if (instanceNamesSeen.contains(instanceName)) {
log.warn("Found multiple instances with name: '{}'. Instance names should be unique, update the 'name' field on your instances to be unique.", instanceName);
log.warn("Found multiple instances with name: '{}'. "
+ "Instance names should be unique, "
+ "update the 'name' field on your instances to be unique.",
instanceName);
}
instanceNamesSeen.add(instanceName);
}
Expand Down Expand Up @@ -905,7 +908,10 @@ public void init(final boolean forceNewConnection) {
final String instanceName = (String) configInstance.get("name");
if (instanceName != null) {
if (instanceNamesSeen.contains(instanceName)) {
log.warn("Found multiple instances with name: '{}'. Instance names should be unique, update the 'name' field on your instances to be unique.", instanceName);
log.warn("Found multiple instances with name: '{}'. "
+ "Instance names should be unique, "
+ "update the 'name' field on your instances to be unique.",
instanceName);
}
instanceNamesSeen.add(instanceName);
}
Expand Down

0 comments on commit 96eba4f

Please sign in to comment.