mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove concatenations with empty string
Closes gh-10512
This commit is contained in:
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…
Reference in New Issue
Block a user