Remove concatenations with empty string

Closes gh-10512
pull/10535/merge
dreis2211 7 years ago committed by Phillip Webb
parent f35af88de5
commit a76005e8d9

@ -214,7 +214,7 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
private void addTimeTaken(Map<String, Object> 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")

@ -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);
}

Loading…
Cancel
Save