aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-05-07 18:11:29 +0000
committerjhugunin <jhugunin>2003-05-07 18:11:29 +0000
commitc522492213e630ddfe205a25a0907f31479ff292 (patch)
tree469ebf32dce34540d4836df504af05c58eb08a14 /org.aspectj.ajdt.core
parent96db9d89822e6f648fc14d708323da9902b161de (diff)
downloadaspectj-c522492213e630ddfe205a25a0907f31479ff292.tar.gz
aspectj-c522492213e630ddfe205a25a0907f31479ff292.zip
fixed bug for inferring the kind of messages from the eclipse batch
compiler where == -1 was used instead of != -1
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java
index 64dab7244..10d3279c4 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java
@@ -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;