Skip to content

Commit

Permalink
FindBugs: ReferenceCountRecorder should not use \n as newline (VA_FOR…
Browse files Browse the repository at this point in the history
…MAT_STRING_USES_NEWLINE)
  • Loading branch information
oleg-nenashev committed Aug 6, 2016
1 parent 31423f9 commit d9ace23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/remoting/ReferenceCountRecorder.java
Expand Up @@ -55,9 +55,9 @@ void onRelease(Throwable callSite) {
* Dumps this recorded result into the given {@link PrintWriter}
*/
synchronized void dump(PrintWriter w) {
w.printf(" Reference count recording: cap=%d total=%d\n", cap, total);
w.printf(" Reference count recording: cap=%d total=%d%n", cap, total);
for (Event e : events) {
w.printf(" %s at %s\n", e.getClass().getSimpleName(), new Date(e.site.timestamp));
w.printf(" %s at %s%n", e.getClass().getSimpleName(), new Date(e.site.timestamp));

StringWriter sw = new StringWriter();
e.site.printStackTrace(new PrintWriter(sw,true));
Expand Down

0 comments on commit d9ace23

Please sign in to comment.