We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 490e5b1 commit 7075755Copy full SHA for 7075755
logicaldoc-util/src/main/java/com/logicaldoc/util/Pair.java
@@ -9,7 +9,7 @@
9
* @param <K> the type of key
10
* @param <V> the type of value
11
*/
12
-public class Pair<K extends Object, V extends Object> {
+public class Pair<K, V> {
13
14
/**
15
* Key of this <code>Pair</code>.
@@ -119,7 +119,7 @@ public boolean equals(Object o) {
119
return true;
120
if (o instanceof Pair) {
121
@SuppressWarnings("unchecked")
122
- Pair<K,V> pair = (Pair<K,V>) o;
+ Pair<K, V> pair = (Pair<K, V>) o;
123
if (key != null ? !key.equals(pair.key) : pair.key != null)
124
return false;
125
return !(value != null ? !value.equals(pair.value) : pair.value != null);
0 commit comments