@Test public void testSpacesPattern01() { assertThrows(IllegalArgumentException.class, () -> PackageNameMatcher.compile(asList(" "))); }
public static PackageNameMatcher compile(final List<String> specs) { if (specs == null) { throw new IllegalArgumentException("null package name specifications"); } final List<Pattern> list = new ArrayList<>(); for (String part : specs) { list.add(buildPattern(part)); } return new PackageNameMatcher(list); }
PackageNameMatcher { public static PackageNameMatcher compile(final List<String> specs) { if (specs == null) { throw new IllegalArgumentException("null package name specifications"); } final List<Pattern> list = new ArrayList<>(); for (String part : specs) { list.add(buildPattern(part)); } return new PackageNameMatcher(list); } }
PackageNameMatcher { public static PackageNameMatcher compile(final List<String> specs) { if (specs == null) { throw new IllegalArgumentException("null package name specifications"); } final List<Pattern> list = new ArrayList<>(); for (String part : specs) { list.add(buildPattern(part)); } return new PackageNameMatcher(list); } private  PackageNameMatcher(List<Pattern> patterns); }
PackageNameMatcher { public static PackageNameMatcher compile(final List<String> specs) { if (specs == null) { throw new IllegalArgumentException("null package name specifications"); } final List<Pattern> list = new ArrayList<>(); for (String part : specs) { list.add(buildPattern(part)); } return new PackageNameMatcher(list); } private  PackageNameMatcher(List<Pattern> patterns); static PackageNameMatcher compile(final List<String> specs); boolean matches(String packageName); @Override String toString(); }
PackageNameMatcher { public static PackageNameMatcher compile(final List<String> specs) { if (specs == null) { throw new IllegalArgumentException("null package name specifications"); } final List<Pattern> list = new ArrayList<>(); for (String part : specs) { list.add(buildPattern(part)); } return new PackageNameMatcher(list); } private  PackageNameMatcher(List<Pattern> patterns); static PackageNameMatcher compile(final List<String> specs); boolean matches(String packageName); @Override String toString();  }