Commit a76005e8 authored by dreis2211's avatar dreis2211 Committed by Phillip Webb

Remove concatenations with empty string

Closes gh-10512
parent f35af88d
...@@ -214,7 +214,7 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order ...@@ -214,7 +214,7 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
private void addTimeTaken(Map<String, Object> trace, long startTime) { private void addTimeTaken(Map<String, Object> trace, long startTime) {
long timeTaken = System.nanoTime() - startTime; long timeTaken = System.nanoTime() - startTime;
add(trace, Include.TIME_TAKEN, "timeTaken", add(trace, Include.TIME_TAKEN, "timeTaken",
"" + TimeUnit.NANOSECONDS.toMillis(timeTaken)); String.valueOf(TimeUnit.NANOSECONDS.toMillis(timeTaken)));
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
......
...@@ -128,7 +128,7 @@ public class StopMojo extends AbstractMojo { ...@@ -128,7 +128,7 @@ public class StopMojo extends AbstractMojo {
} }
catch (InstanceNotFoundException ex) { catch (InstanceNotFoundException ex) {
throw new MojoExecutionException( 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", + this.fork + "). Could not stop application gracefully",
ex); ex);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment