We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b59ee14 commit 5623335Copy full SHA for 5623335
hamcrest-core/src/main/java/org/hamcrest/core/IsEqual.java
@@ -84,14 +84,14 @@ private static boolean isArray(Object o) {
84
*
85
*/
86
public static <T> Matcher<T> equalTo(T operand) {
87
- return new IsEqual<T>(operand);
+ return new IsEqual<>(operand);
88
}
89
90
/**
91
* Creates an {@link org.hamcrest.core.IsEqual} matcher that does not enforce the values being
92
* compared to be of the same static type.
93
94
public static Matcher<Object> equalToObject(Object operand) {
95
- return new IsEqual<Object>(operand);
96
97
0 commit comments