diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java index 5c2075a2e6..65e9ea555b 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java @@ -214,7 +214,7 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order private void addTimeTaken(Map trace, long startTime) { long timeTaken = System.nanoTime() - startTime; add(trace, Include.TIME_TAKEN, "timeTaken", - "" + TimeUnit.NANOSECONDS.toMillis(timeTaken)); + String.valueOf(TimeUnit.NANOSECONDS.toMillis(timeTaken))); } @SuppressWarnings("unchecked") diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java index e7c1db88a4..78b62bafac 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java @@ -128,7 +128,7 @@ public class StopMojo extends AbstractMojo { } catch (InstanceNotFoundException ex) { throw new MojoExecutionException( - "Spring application lifecycle JMX bean not found (fork is " + "" + "Spring application lifecycle JMX bean not found (fork is " + this.fork + "). Could not stop application gracefully", ex); }