Merge pull request #8686 from dreis2211:empty-string-concat

* pr/8686:
  Replace empty string concatenation with String.valueOf()
pull/1688/merge
Stephane Nicoll 8 years ago
commit 9b2b1a3a28

@ -202,7 +202,7 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
private void addTimeTaken(long startTime, long endTime, Map<String, Object> trace) {
long timeTaken = endTime - startTime;
add(trace, Include.TIME_TAKEN, "timeTaken", "" + timeTaken);
add(trace, Include.TIME_TAKEN, "timeTaken", String.valueOf(timeTaken));
}
@SuppressWarnings("unchecked")
@ -222,7 +222,7 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
if (!isIncluded(Include.COOKIES)) {
headers.remove("Set-Cookie");
}
headers.put("status", "" + response.getStatus());
headers.put("status", String.valueOf(response.getStatus()));
return headers;
}

Loading…
Cancel
Save