From: wisberg Date: Tue, 29 Apr 2003 00:26:02 +0000 (+0000) Subject: using Kind.isSameOrLessThan(..) rather than direct compare for inferring streams X-Git-Tag: V1_1_0_RC2~137 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52882bef3e9112f4a42016ba537cc1f6fbef5104;p=aspectj.git using Kind.isSameOrLessThan(..) rather than direct compare for inferring streams --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java index 99ead011c..eb10afa56 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java @@ -455,10 +455,7 @@ public class Main { * System.out for INFO if verbose. */ protected PrintStream getStreamFor(IMessage.Kind kind) { - if (IMessage.FAIL.equals(kind) - || IMessage.ERROR.equals(kind) - || IMessage.WARNING.equals(kind) - || IMessage.ABORT.equals(kind)) { + if (IMessage.WARNING.isSameOrLessThan(kind)) { return System.err; } else if (verbose && IMessage.INFO.equals(kind)) { return System.out;