Skip to content

Commit c84bbf0

Browse files
committed
Fix openjdk6 build by removing @SafeVarargs
1 parent 8883dc6 commit c84bbf0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎hamcrest-library/src/main/java/org/hamcrest/collection/HasConsecutiveItems.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public static <T> Matcher<Collection<? extends T>> hasConsecutiveItems(
6363
}
6464

6565
@Factory
66-
@SafeVarargs
6766
public static <T> Matcher<Collection<? extends T>> hasConsecutiveItems(
6867
Matcher<? super T>... matchers) {
6968
return hasConsecutiveItems(Arrays.asList(matchers));
@@ -80,7 +79,6 @@ public static <T> Matcher<Collection<? extends T>> hasConsecutiveItems(
8079
}
8180

8281
@Factory
83-
@SafeVarargs
8482
public static <T> Matcher<Collection<? extends T>> hasConsecutiveItems(T... elements) {
8583
return hasConsecutiveItems(Arrays.asList(elements));
8684
}

0 commit comments

Comments
 (0)