Skip to content

Commit 7852275

Browse files
committed
tidy ups
1 parent 3ede8bf commit 7852275

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hamcrest-core/src/main/java/org/hamcrest/core/Every.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ public void describeTo(Description description) {
3939
* the matcher to apply to every item provided by the examined {@link Iterable}
4040
*/
4141
public static <U> Matcher<Iterable<? extends U>> everyItem(final Matcher<U> itemMatcher) {
42-
return new Every<U>(itemMatcher);
42+
return new Every<>(itemMatcher);
4343
}
4444
}

hamcrest-core/src/test/java/org/hamcrest/core/EveryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.util.ArrayList;
77

88
import static java.util.Arrays.asList;
9+
import static java.util.Collections.singletonList;
910
import static org.hamcrest.AbstractMatcherTest.*;
1011
import static org.hamcrest.core.StringContains.containsString;
1112

@@ -37,7 +38,7 @@ public final class EveryTest {
3738

3839
@Test public void
3940
describesAMismatch() {
40-
assertMismatchDescription("an item was \"BXB\"", matcher, asList("BXB"));
41+
assertMismatchDescription("an item was \"BXB\"", matcher, singletonList("BXB"));
4142
}
4243
}
4344

0 commit comments

Comments
 (0)