Skip to content

Commit b7e13b3

Browse files
committed
we don't use System.out in the judge anymore, don't intercept it
1 parent a9a57d7 commit b7e13b3

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

src/main/java/server/Judge.java

-8
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,9 @@ public void initClientQueue(Channel channel, String clientQueue) {
115115
}
116116

117117
public void setListeners(String clientQueue, Exercise exo) {
118-
ListenerOutStream listenerOut = null;
119118
for(World world : exo.getWorlds(WorldKind.CURRENT)) {
120119
BasicListener l = new BasicListener(world, connector, clientQueue, 1000);
121120
listeners.add(l);
122-
/*
123-
if(listenerOut == null) {
124-
listenerOut = new ListenerOutStream(System.out, l);
125-
PrintStream outStream = new PrintStream(listenerOut, true); //Direct to MyOutputStream, autoflush
126-
System.setOut(outStream);
127-
}
128-
*/
129121
}
130122
}
131123

src/main/java/server/ListenerOutStream.java

-29
This file was deleted.

0 commit comments

Comments
 (0)