Merge pull request #10512 from dreis2211/cleanup-empty-string-concat

* pr/10512:
  Remove concatenations with empty string
pull/10535/merge
Phillip Webb 7 years ago
commit 9106723c3b

@ -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