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
|
@Override
|
||||||
public V setValue(final V value) {
|
public V setValue(final V value) {
|
||||||
final K key = MapEntry.this.getKey();
|
final K key = getKey();
|
||||||
if (parent.reverseMap.containsKey(value) &&
|
if (parent.reverseMap.containsKey(value) &&
|
||||||
parent.reverseMap.get(value) != key) {
|
parent.reverseMap.get(value) != key) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
|
|
|
@ -2220,17 +2220,17 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object obj) {
|
public boolean equals(final Object obj) {
|
||||||
return TreeBidiMap.this.doEquals(obj, DataElement.VALUE);
|
return TreeBidiMap.this.doEquals(obj, VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return TreeBidiMap.this.doHashCode(DataElement.VALUE);
|
return TreeBidiMap.this.doHashCode(VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return TreeBidiMap.this.doToString(DataElement.VALUE);
|
return TreeBidiMap.this.doToString(VALUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue