@@ -56,7 +56,7 @@ public void describeTo(Description description) {
56
56
* the value matcher that, in combination with the keyMatcher, must be satisfied by at least one entry
57
57
*/
58
58
public static <K ,V > Matcher <Map <? extends K ,? extends V >> hasEntry (Matcher <? super K > keyMatcher , Matcher <? super V > valueMatcher ) {
59
- return new IsMapContaining <K , V >(keyMatcher , valueMatcher );
59
+ return new IsMapContaining <>(keyMatcher , valueMatcher );
60
60
}
61
61
62
62
/**
@@ -72,7 +72,7 @@ public static <K,V> Matcher<Map<? extends K,? extends V>> hasEntry(Matcher<? sup
72
72
* the value that, in combination with the key, must be describe at least one entry
73
73
*/
74
74
public static <K ,V > Matcher <Map <? extends K ,? extends V >> hasEntry (K key , V value ) {
75
- return new IsMapContaining <K , V >(equalTo (key ), equalTo (value ));
75
+ return new IsMapContaining <>(equalTo (key ), equalTo (value ));
76
76
}
77
77
78
78
/**
@@ -85,7 +85,7 @@ public static <K,V> Matcher<Map<? extends K,? extends V>> hasEntry(K key, V valu
85
85
* the matcher that must be satisfied by at least one key
86
86
*/
87
87
public static <K > Matcher <Map <? extends K , ?>> hasKey (Matcher <? super K > keyMatcher ) {
88
- return new IsMapContaining <K , Object >(keyMatcher , anything ());
88
+ return new IsMapContaining <>(keyMatcher , anything ());
89
89
}
90
90
91
91
/**
@@ -98,7 +98,7 @@ public static <K,V> Matcher<Map<? extends K,? extends V>> hasEntry(K key, V valu
98
98
* the key that satisfying maps must contain
99
99
*/
100
100
public static <K > Matcher <Map <? extends K , ?>> hasKey (K key ) {
101
- return new IsMapContaining <K , Object >(equalTo (key ), anything ());
101
+ return new IsMapContaining <>(equalTo (key ), anything ());
102
102
}
103
103
104
104
/**
@@ -111,7 +111,7 @@ public static <K,V> Matcher<Map<? extends K,? extends V>> hasEntry(K key, V valu
111
111
* the matcher that must be satisfied by at least one value
112
112
*/
113
113
public static <V > Matcher <Map <?, ? extends V >> hasValue (Matcher <? super V > valueMatcher ) {
114
- return new IsMapContaining <Object , V >(anything (), valueMatcher );
114
+ return new IsMapContaining <>(anything (), valueMatcher );
115
115
}
116
116
117
117
/**
@@ -124,6 +124,6 @@ public static <K,V> Matcher<Map<? extends K,? extends V>> hasEntry(K key, V valu
124
124
* the value that satisfying maps must contain
125
125
*/
126
126
public static <V > Matcher <Map <?, ? extends V >> hasValue (V value ) {
127
- return new IsMapContaining <Object , V >(anything (), equalTo (value ));
127
+ return new IsMapContaining <>(anything (), equalTo (value ));
128
128
}
129
129
}
0 commit comments