Skip to content

Commit 7a28ef8

Browse files
author
smgfreeman
committed
Issue 78: IsArray factory is not properly annotated
1 parent a4e7045 commit 7a28ef8

File tree

1 file changed

+2
-0
lines changed
  • hamcrest-library/src/main/java/org/hamcrest/collection

1 file changed

+2
-0
lines changed

hamcrest-library/src/main/java/org/hamcrest/collection/IsArray.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.util.Arrays;
44

55
import org.hamcrest.Description;
6+
import org.hamcrest.Factory;
67
import org.hamcrest.Matcher;
78
import org.hamcrest.TypeSafeMatcher;
89

@@ -80,6 +81,7 @@ protected String descriptionEnd() {
8081
/**
8182
* Evaluates to true only if each matcher[i] is satisfied by array[i].
8283
*/
84+
@Factory
8385
public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers) {
8486
return new IsArray<T>(elementMatchers);
8587
}

0 commit comments

Comments
 (0)