Skip to content

Commit

Permalink
#360 improved matching api
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Apr 23, 2015
1 parent 6bc39e4 commit 8ac345f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -22,11 +22,11 @@
/**
* @author emeroad
*/
public class DefaultMultiMultiClassNameMatcher implements MultiClassNameMatcher {
public class DefaultMultiClassNameMatcher implements MultiClassNameMatcher {

private final List<String> classNameList;

DefaultMultiMultiClassNameMatcher(List<String> classNameMatcherList) {
DefaultMultiClassNameMatcher(List<String> classNameMatcherList) {
if (classNameMatcherList == null) {
throw new NullPointerException("classNameMatcherList must not be null");
}
Expand All @@ -43,7 +43,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

DefaultMultiMultiClassNameMatcher that = (DefaultMultiMultiClassNameMatcher) o;
DefaultMultiClassNameMatcher that = (DefaultMultiClassNameMatcher) o;

return classNameList.equals(that.classNameList);

Expand Down
Expand Up @@ -36,14 +36,14 @@ public static Matcher newMultiClassNameMatcher(List<String> classNameList) {
if (classNameList == null) {
throw new NullPointerException("classNameList must not be null");
}
return new DefaultMultiMultiClassNameMatcher(classNameList);
return new DefaultMultiClassNameMatcher(classNameList);
}

public static Matcher newMultiClassNameMatcher(String... classNameList) {
if (classNameList == null) {
throw new NullPointerException("classNameList must not be null");
}
return new DefaultMultiMultiClassNameMatcher(Arrays.asList(classNameList));
return new DefaultMultiClassNameMatcher(Arrays.asList(classNameList));
}

}

0 comments on commit 8ac345f

Please sign in to comment.