Skip to content

Commit f06d869

Browse files
author
David R. MacIver
committed
removed cast to String due to aesthetic considerations
1 parent b4065ce commit f06d869

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/com/rabbitmq/tools/Tracer.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,12 @@ private static class AsyncLogger extends Thread {
9696
}.start();
9797
}
9898

99-
void printMessage(String message) {
100-
ps.println(message);
101-
}
102-
10399
@Override public void run() {
104100
try {
105101
while(true) {
106102
Object message = queue.take();
107103
if(message == FLUSH) ps.flush();
108-
else printMessage((String)message);
104+
else ps.println(message);
109105
}
110106
} catch (InterruptedException interrupt) {
111107
}

0 commit comments

Comments
 (0)