From 37ccfa342db32b9e1b24496ec89b5a5de7a81d4b Mon Sep 17 00:00:00 2001 From: Graham Date: Fri, 23 Aug 2019 21:55:05 +0100 Subject: [PATCH] Log to nullOutputStream() instead of hijacking System.out by default --- src/main/java/org/apache/harmony/unpack200/Archive.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/harmony/unpack200/Archive.java b/src/main/java/org/apache/harmony/unpack200/Archive.java index 2cb5919..c857ff1 100644 --- a/src/main/java/org/apache/harmony/unpack200/Archive.java +++ b/src/main/java/org/apache/harmony/unpack200/Archive.java @@ -148,7 +148,7 @@ public class Archive { segment.setLogLevel(logLevel); segment .setLogStream(logFile != null ? (OutputStream) logFile - : (OutputStream) System.out); + : OutputStream.nullOutputStream()); segment.setPreRead(false); if (i == 1) { @@ -245,4 +245,4 @@ public class Archive { this.deflateHint = deflateHint; } -} \ No newline at end of file +}