Skip to content

Commit 7075755

Browse files
committed
Simplified Pair
1 parent 490e5b1 commit 7075755

File tree

1 file changed

+2
-2
lines changed
  • logicaldoc-util/src/main/java/com/logicaldoc/util

1 file changed

+2
-2
lines changed

logicaldoc-util/src/main/java/com/logicaldoc/util/Pair.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @param <K> the type of key
1010
* @param <V> the type of value
1111
*/
12-
public class Pair<K extends Object, V extends Object> {
12+
public class Pair<K, V> {
1313

1414
/**
1515
* Key of this <code>Pair</code>.
@@ -119,7 +119,7 @@ public boolean equals(Object o) {
119119
return true;
120120
if (o instanceof Pair) {
121121
@SuppressWarnings("unchecked")
122-
Pair<K,V> pair = (Pair<K,V>) o;
122+
Pair<K, V> pair = (Pair<K, V>) o;
123123
if (key != null ? !key.equals(pair.key) : pair.key != null)
124124
return false;
125125
return !(value != null ? !value.equals(pair.value) : pair.value != null);

0 commit comments

Comments
 (0)