From 52882bef3e9112f4a42016ba537cc1f6fbef5104 Mon Sep 17 00:00:00 2001 From: wisberg Date: Tue, 29 Apr 2003 00:26:02 +0000 Subject: [PATCH] using Kind.isSameOrLessThan(..) rather than direct compare for inferring streams --- org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.39.5