From 5aa932dfeaa68d12a2db9488de5af1e155bad792 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 7 Feb 2006 14:54:20 +0000 Subject: [PATCH] dont do anything if we dont have to. --- weaver/src/org/aspectj/weaver/Lint.java | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5