summaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-18 09:32:17 +0000
committeracolyer <acolyer>2005-08-18 09:32:17 +0000
commit6cccb66ba4e056d7f219a6e465ddf6bb0f755c0e (patch)
treea35bc0b9d47184057511f8c0412412ca12735725 /weaver
parente1e8a032d34bf125561f5fadaf1fba3f37d2d56f (diff)
downloadaspectj-6cccb66ba4e056d7f219a6e465ddf6bb0f755c0e.tar.gz
aspectj-6cccb66ba4e056d7f219a6e465ddf6bb0f755c0e.zip
SuppressAjWarnings should not suppress errors!
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/Lint.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/Lint.java b/weaver/src/org/aspectj/weaver/Lint.java
index c6795407f..aea2432bd 100644
--- a/weaver/src/org/aspectj/weaver/Lint.java
+++ b/weaver/src/org/aspectj/weaver/Lint.java
@@ -205,7 +205,12 @@ public class Lint {
}
public boolean isEnabled() {
- return (kind != null) && !isSupressed;
+ return (kind != null) && !isSupressed();
+ }
+
+ private boolean isSupressed() {
+ // can't suppress errors!
+ return isSupressed && (kind != IMessage.ERROR);
}
public String getName() {