}
// remove any suppression of lint warnings in place
- public void clearSuppressions() {
+ public void clearAllSuppressions() {
for (Iterator iter = kinds.values().iterator(); iter.hasNext();) {
Kind k = (Kind) iter.next();
k.setSuppressed(false);
}
}
+
+ public void clearSuppressions(Collection lintKind) {
+ for (Iterator iter = lintKind.iterator(); iter.hasNext();) {
+ Kind k = (Kind) iter.next();
+ k.setSuppressed(false);
+ }
+ }
private IMessage.Kind getMessageKind(String v) {
if (v.equals("ignore")) return null;
public ShadowMunger concretize(ResolvedType fromType, World world, PerClause clause) {
suppressLintWarnings(world);
ShadowMunger ret = super.concretize(fromType, world, clause);
- clearLintSuppressions(world);
+ clearLintSuppressions(world,this.suppressedLintKinds);
return ret;
}
public boolean match(Shadow shadow, World world) {
suppressLintWarnings(world);
boolean ret = super.match(shadow, world);
- clearLintSuppressions(world);
+ clearLintSuppressions(world,this.suppressedLintKinds);
return ret;
}
World world = shadow.getIWorld();
suppressLintWarnings(world);
pointcutTest = getPointcut().findResidue(shadow, exposedState);
- clearLintSuppressions(world);
+ clearLintSuppressions(world,this.suppressedLintKinds);
// these initializations won't be performed by findResidue, but need to be
// so that the joinpoint is primed for weaving
inWorld.getLint().suppressKinds(suppressedLintKinds);
}
- protected void clearLintSuppressions(World inWorld) {
- inWorld.getLint().clearSuppressions();
+ protected void clearLintSuppressions(World inWorld,Collection toClear) {
+ inWorld.getLint().clearSuppressions(toClear);
}
}