File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/java/org/hamcrest/core
test/java/org/hamcrest/core Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ public void describeTo(Description description) {
39
39
* the matcher to apply to every item provided by the examined {@link Iterable}
40
40
*/
41
41
public static <U > Matcher <Iterable <? extends U >> everyItem (final Matcher <U > itemMatcher ) {
42
- return new Every <U >(itemMatcher );
42
+ return new Every <>(itemMatcher );
43
43
}
44
44
}
Original file line number Diff line number Diff line change 6
6
import java .util .ArrayList ;
7
7
8
8
import static java .util .Arrays .asList ;
9
+ import static java .util .Collections .singletonList ;
9
10
import static org .hamcrest .AbstractMatcherTest .*;
10
11
import static org .hamcrest .core .StringContains .containsString ;
11
12
@@ -37,7 +38,7 @@ public final class EveryTest {
37
38
38
39
@ Test public void
39
40
describesAMismatch () {
40
- assertMismatchDescription ("an item was \" BXB\" " , matcher , asList ("BXB" ));
41
+ assertMismatchDescription ("an item was \" BXB\" " , matcher , singletonList ("BXB" ));
41
42
}
42
43
}
43
44
You can’t perform that action at this time.
0 commit comments