From: Doni Pracner Date: Thu, 23 Jan 2014 21:47:38 +0000 (+0100) Subject: minor mjc2wsl - outputstream initialisation for messages X-Git-Tag: v0.1.4~7 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=21394a937d11949b9f37a5330f588dd337407439;p=mjc2wsl.git minor mjc2wsl - outputstream initialisation for messages --- diff --git a/src/TransMessages.java b/src/TransMessages.java index f00c27a..5880c79 100644 --- a/src/TransMessages.java +++ b/src/TransMessages.java @@ -30,7 +30,7 @@ public class TransMessages { public static final int M_WAR = 1; public static final int M_ERR = 2; public static final int M_QUIET = 3; - private PrintStream outStream; + private PrintStream outStream = System.out; public TransMessages() { this.setPrintLevel(M_ERR); @@ -39,7 +39,6 @@ public class TransMessages { void message(String mes, int level){ if (level>=getPrintLevel()) { - outStream = System.out; outStream.println(mes); } messageCounters[level]++;