Skip to content

Commit 9106723

Browse files
committed
Merge pull request #10512 from dreis2211/cleanup-empty-string-concat
* pr/10512: Remove concatenations with empty string
2 parents f35af88 + a76005e commit 9106723

File tree

2 files changed

+2
-2
lines changed
  • spring-boot-project
    • spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace
    • spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ protected void postProcessRequestHeaders(Map<String, Object> headers) {
214214
private void addTimeTaken(Map<String, Object> trace, long startTime) {
215215
long timeTaken = System.nanoTime() - startTime;
216216
add(trace, Include.TIME_TAKEN, "timeTaken",
217-
"" + TimeUnit.NANOSECONDS.toMillis(timeTaken));
217+
String.valueOf(TimeUnit.NANOSECONDS.toMillis(timeTaken)));
218218
}
219219

220220
@SuppressWarnings("unchecked")

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private void doStop(MBeanServerConnection connection)
128128
}
129129
catch (InstanceNotFoundException ex) {
130130
throw new MojoExecutionException(
131-
"Spring application lifecycle JMX bean not found (fork is " + ""
131+
"Spring application lifecycle JMX bean not found (fork is "
132132
+ this.fork + "). Could not stop application gracefully",
133133
ex);
134134
}

0 commit comments

Comments
 (0)