Log to nullOutputStream() instead of hijacking System.out by default

master
Graham 5 years ago
parent 08f5ff034a
commit 37ccfa342d
  1. 2
      src/main/java/org/apache/harmony/unpack200/Archive.java

@ -148,7 +148,7 @@ public class Archive {
segment.setLogLevel(logLevel); segment.setLogLevel(logLevel);
segment segment
.setLogStream(logFile != null ? (OutputStream) logFile .setLogStream(logFile != null ? (OutputStream) logFile
: (OutputStream) System.out); : OutputStream.nullOutputStream());
segment.setPreRead(false); segment.setPreRead(false);
if (i == 1) { if (i == 1) {

Loading…
Cancel
Save