From: aclement Date: Tue, 7 Feb 2006 14:54:20 +0000 (+0000) Subject: dont do anything if we dont have to. X-Git-Tag: POST_MEMORY_CHANGES~110 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5aa932dfeaa68d12a2db9488de5af1e155bad792;p=aspectj.git dont do anything if we dont have to. --- 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);