From c522492213e630ddfe205a25a0907f31479ff292 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Wed, 7 May 2003 18:11:29 +0000 Subject: [PATCH] fixed bug for inferring the kind of messages from the eclipse batch compiler where == -1 was used instead of != -1 --- .../src/org/aspectj/ajdt/ajc/AjdtCommand.java | 4 ++-- 1 file 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; -- 2.39.5