X-Git-Url: http://svarog.pmf.uns.ac.rs/gitweb/?p=mjc2wsl.git;a=blobdiff_plain;f=src%2FTransMessages.java;h=5880c7903228cdd9b294f623e9736556151e626b;hp=a544421339d95460c7ca14de9c2e9bd97bc738da;hb=13695fb09706ad9035f7acc12d7a09954ed1843d;hpb=3b31cbbe8fa685918d254c4106cfef524518367e diff --git a/src/TransMessages.java b/src/TransMessages.java index a544421..5880c79 100644 --- a/src/TransMessages.java +++ b/src/TransMessages.java @@ -1,6 +1,23 @@ +/* + Copyright (C) 2014 Doni Pracner + + This file is part of mjc2wsl. + + mjc2wsl is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + mjc2wsl is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with mjc2wsl. If not, see . +*/ import java.io.PrintStream; - /** * Handle the messages that the translator (or someone else) will * give to this class depending on the print level. @@ -13,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); @@ -22,7 +39,6 @@ public class TransMessages { void message(String mes, int level){ if (level>=getPrintLevel()) { - outStream = System.out; outStream.println(mes); } messageCounters[level]++;