All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.eris.notnull.ExcludeConfiguration Maven / Gradle / Ivy

package se.eris.notnull;

import se.eris.notnull.instrumentation.ClassMatcher;

import java.util.HashSet;
import java.util.Set;

public class ExcludeConfiguration {

    private final Set excludes;

    public ExcludeConfiguration(final Set excludes) {
        this.excludes = new HashSet<>(excludes);
    }

    public boolean isClassImplicitInstrumentation(final CharSequence className) {
        for (final ClassMatcher classMatcher : excludes) {
            if (classMatcher.matches(className)) {
                return false;
            }
        }
        return true;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy