private immutable fields might as well be final

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1024083 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-19 01:37:38 +00:00
parent ff8d2b1afd
commit b2152cf627

View File

@ -1791,12 +1791,12 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> imple
*/
static class Node<K extends Comparable<K>, V extends Comparable<V>> implements Map.Entry<K, V>, KeyValue<K, V> {
private K key;
private V value;
private Node<K, V>[] leftNode;
private Node<K, V>[] rightNode;
private Node<K, V>[] parentNode;
private boolean[] blackColor;
private final K key;
private final V value;
private final Node<K, V>[] leftNode;
private final Node<K, V>[] rightNode;
private final Node<K, V>[] parentNode;
private final boolean[] blackColor;
private int hashcodeValue;
private boolean calculatedHashCode;