PMD: Use direct access
This commit is contained in:
parent
e377b46bc8
commit
8e300bdec2
|
@ -702,7 +702,7 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
|
|||
|
||||
@Override
|
||||
public V setValue(final V value) {
|
||||
final K key = MapEntry.this.getKey();
|
||||
final K key = getKey();
|
||||
if (parent.reverseMap.containsKey(value) &&
|
||||
parent.reverseMap.get(value) != key) {
|
||||
throw new IllegalArgumentException(
|
||||
|
|
|
@ -2220,17 +2220,17 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>>
|
|||
|
||||
@Override
|
||||
public boolean equals(final Object obj) {
|
||||
return TreeBidiMap.this.doEquals(obj, DataElement.VALUE);
|
||||
return TreeBidiMap.this.doEquals(obj, VALUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return TreeBidiMap.this.doHashCode(DataElement.VALUE);
|
||||
return TreeBidiMap.this.doHashCode(VALUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return TreeBidiMap.this.doToString(DataElement.VALUE);
|
||||
return TreeBidiMap.this.doToString(VALUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue