code: private String[] fillNonPatternSet(Set set, String[] patterns) {
          ArrayList al = new ArrayList(patterns.length);
          for (int i = 0; i < patterns.length; i++) {
              if (!SelectorUtils.hasWildcards(patterns[i])) {
                  set.add(isCaseSensitive() ? patterns[i]
                      : patterns[i].toUpperCase());
              } else {
                  al.add(patterns[i]);
              }
          }
          return set.size() == 0 ? patterns
              : (String[]) al.toArray(new String[al.size()]);
      }
docs: Add all patterns that are not real patterns (do not contain
  wildcards) to the set and returns the real patterns.
  
  @param set Set to populate.
  @param patterns String[] of patterns.
  @since Ant 1.6.3