]> source.dussan.org Git - aspectj.git/commitdiff
fixed bug for inferring the kind of messages from the eclipse batch
authorjhugunin <jhugunin>
Wed, 7 May 2003 18:11:29 +0000 (18:11 +0000)
committerjhugunin <jhugunin>
Wed, 7 May 2003 18:11:29 +0000 (18:11 +0000)
compiler where == -1 was used instead of != -1

org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java

index 64dab72442778e42eba55f67cbdfa5a12d2cf048..10d3279c4c1689621f672d23158945f9047d430e 100644 (file)
@@ -138,9 +138,9 @@ public class AjdtCommand implements ICommand {
     
     /** @return IMessage.WARNING unless message contains error or info */
     protected static IMessage.Kind inferKind(String message) { // XXX dubious
-        if (-1 == message.indexOf("error")) {
+        if (-1 != message.indexOf("error")) {
             return IMessage.ERROR;
-        } else if (-1 == message.indexOf("info")) {
+        } else if (-1 != message.indexOf("info")) {
             return IMessage.INFO;
         } else {
             return IMessage.WARNING;