summaryrefslogtreecommitdiffstats
path: root/weaver/src
diff options
context:
space:
mode:
authoraclement <aclement>2006-02-07 14:54:20 +0000
committeraclement <aclement>2006-02-07 14:54:20 +0000
commit5aa932dfeaa68d12a2db9488de5af1e155bad792 (patch)
tree4e5d5dcabc46cb118c2a2961d2816286da33fb7b /weaver/src
parent59501feb0d88ebd90d3d7b831adac4e161b9118b (diff)
downloadaspectj-5aa932dfeaa68d12a2db9488de5af1e155bad792.tar.gz
aspectj-5aa932dfeaa68d12a2db9488de5af1e155bad792.zip
dont do anything if we dont have to.
Diffstat (limited to 'weaver/src')
-rw-r--r--weaver/src/org/aspectj/weaver/Lint.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/Lint.java b/weaver/src/org/aspectj/weaver/Lint.java
index ef025d693..b1c4439e9 100644
--- a/weaver/src/org/aspectj/weaver/Lint.java
+++ b/weaver/src/org/aspectj/weaver/Lint.java
@@ -191,6 +191,7 @@ public class Lint {
// temporarily suppress the given lint messages
public void suppressKinds(Collection lintKind) {
+ if (lintKind.isEmpty()) return;
for (Iterator iter = lintKind.iterator(); iter.hasNext();) {
Kind k = (Kind) iter.next();
k.setSuppressed(true);
@@ -206,6 +207,7 @@ public class Lint {
}
public void clearSuppressions(Collection lintKind) {
+ if (lintKind.isEmpty()) return;
for (Iterator iter = lintKind.iterator(); iter.hasNext();) {
Kind k = (Kind) iter.next();
k.setSuppressed(false);