Skip to content

Commit 5623335

Browse files
committed
tidy up generics
1 parent b59ee14 commit 5623335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ private static boolean isArray(Object o) {
8484
*
8585
*/
8686
public static <T> Matcher<T> equalTo(T operand) {
87-
return new IsEqual<T>(operand);
87+
return new IsEqual<>(operand);
8888
}
8989

9090
/**
9191
* Creates an {@link org.hamcrest.core.IsEqual} matcher that does not enforce the values being
9292
* compared to be of the same static type.
9393
*/
9494
public static Matcher<Object> equalToObject(Object operand) {
95-
return new IsEqual<Object>(operand);
95+
return new IsEqual<>(operand);
9696
}
9797
}

0 commit comments

Comments
 (0)