Skip to content

Commit aa0b407

Browse files
committed
formatting
1 parent 58e0d94 commit aa0b407

File tree

1 file changed

+2
-3
lines changed
  • agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init

1 file changed

+2
-3
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init/FirstEntryPoint.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ public void init(EarlyInitAgentConfig earlyConfig) {
121121
String classPath = System.getProperty("java.class.path");
122122
// class path null with a Spring Boot executable JAR
123123
if (classPath != null
124-
&& classPath.contains(
125-
"applicationinsights-agent")) { // JAR name in Maven central, the user could have
126-
// renamed it
124+
// JAR name in Maven central, the user could have renamed it
125+
&& classPath.contains("applicationinsights-agent")) {
127126
startupLogger.warn(
128127
"The applicationinsights-agent JAR is in the class path. You should remove it because it could lead to unexpected results. You should configure the Java agent with -javaagent. You can also use the runtime attachment with Spring Boot applications.");
129128
}

0 commit comments

Comments
 (0)