Remove concatenations with empty string

Closes gh-10512
This commit is contained in:
dreis2211 2017-10-04 21:52:06 +02:00 committed by Phillip Webb
parent f35af88de5
commit a76005e8d9
2 changed files with 2 additions and 2 deletions

View File

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

View File

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