]> source.dussan.org Git - aspectj.git/commitdiff
using Kind.isSameOrLessThan(..) rather than direct compare for inferring streams
authorwisberg <wisberg>
Tue, 29 Apr 2003 00:26:02 +0000 (00:26 +0000)
committerwisberg <wisberg>
Tue, 29 Apr 2003 00:26:02 +0000 (00:26 +0000)
org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java

index 99ead011cf479fe070890ba1d0ff331c4b464cac..eb10afa5662f153f686c7d1b47010a2cd8c79530 100644 (file)
@@ -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;