PMD: Use direct access

This commit is contained in:
Gary Gregory 2022-11-06 11:09:25 -05:00
parent e377b46bc8
commit 8e300bdec2
2 changed files with 4 additions and 4 deletions

View File

@ -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(

View File

@ -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);
}
}