src/main/java/nonapi/io/github/classgraph/WhiteBlackList.java
@Override
        public void addToWhitelist(final String str) {
            if (str.contains("*")) {
                if (this.whitelistGlobs == null) {
                    this.whitelistGlobs = new HashSet<>();
                    this.whitelistPatterns = new ArrayList<>();
                }
                this.whitelistGlobs.add(str);
                this.whitelistPatterns.add(globToPattern(str));
            } else {
                if (this.whitelist == null) {
                    this.whitelist = new HashSet<>();
                }
                this.whitelist.add(str);
            }
        }
/**
         * Add to the whitelist.
         *
         * @param str
         *            the string to whitelist
         */
Add to the whitelist.
@param str
the string to whitelist
Add to the whitelist . @param str the string to whitelist
@Override
        public void addToWhitelist(final String str) {
            if (str.contains("*")) {
                if (this.whitelistGlobs == null) {
                    this.whitelistGlobs = new HashSet<>();
                    this.whitelistPatterns = new ArrayList<>();
                }
                this.whitelistGlobs.add(str);
                this.whitelistPatterns.add(globToPattern(str));
            } else {
                if (this.whitelist == null) {
                    this.whitelist = new HashSet<>();
                }
                this.whitelist.add(str);
            }
        }
@ Override public void addToWhitelist ( final String str ) { if ( str . contains ( "*" ) ) { if ( this . whitelistGlobs == null ) { this . whitelistGlobs = new HashSet < > ( ) ; this . whitelistPatterns = new ArrayList < > ( ) ; } this . whitelistGlobs . add ( str ) ; this . whitelistPatterns . add ( globToPattern ( str ) ) ; } else { if ( this . whitelist == null ) { this . whitelist = new HashSet < > ( ) ; } this . whitelist . add ( str ) ; } }
Add to the whitelist.
Add to the whitelist .