se.eris.notnull.ExcludeConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of notnull-instrumenter-maven-plugin Show documentation
Show all versions of notnull-instrumenter-maven-plugin Show documentation
NotNull annotations instrumenter maven plugin
package se.eris.notnull;
import se.eris.notnull.instrumentation.ClassMatcher;
import java.util.HashSet;
import java.util.Set;
public class ExcludeConfiguration {
private final Set exclude;
public ExcludeConfiguration(final Set exclude) {
this.exclude = new HashSet<>(exclude);
}
public boolean isClassImplicitInstrumentation(final CharSequence className) {
for (final ClassMatcher classMatcher : exclude) {
if (classMatcher.matches(className)) {
return false;
}
}
return true;
}
}