aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-04-29 00:26:02 +0000
committerwisberg <wisberg>2003-04-29 00:26:02 +0000
commit52882bef3e9112f4a42016ba537cc1f6fbef5104 (patch)
tree46eb07fdda6a0e34dd3bc4d46edfc7e9584699bb /org.aspectj.ajdt.core
parent074b87b958d20b5704f53a6a618781e797f80eea (diff)
downloadaspectj-52882bef3e9112f4a42016ba537cc1f6fbef5104.tar.gz
aspectj-52882bef3e9112f4a42016ba537cc1f6fbef5104.zip
using Kind.isSameOrLessThan(..) rather than direct compare for inferring streams
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java5
1 files changed, 1 insertions, 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;