You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/04/30 15:44:39 UTC

svn commit: r1477629 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java

Author: sebb
Date: Tue Apr 30 13:44:39 2013
New Revision: 1477629

URL: http://svn.apache.org/r1477629
Log:
Fields can be private

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java?rev=1477629&r1=1477628&r2=1477629&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java Tue Apr 30 13:44:39 2013
@@ -781,22 +781,22 @@ public class PatriciaTrie<K, V> extends 
        /** 
         * The key to start from, null if the beginning. 
         */
-       protected final K fromKey;
+       private final K fromKey;
        
        /** 
         * The key to end at, null if till the end. 
         */
-       protected final K toKey;
+       private final K toKey;
        
        /** 
         * Whether or not the 'from' is inclusive. 
         */
-       protected final boolean fromInclusive;
+       private final boolean fromInclusive;
        
        /** 
         * Whether or not the 'to' is inclusive. 
         */
-       protected final boolean toInclusive;
+       private final boolean toInclusive;
        
        /**
         * Creates a {@link RangeEntryMap} with the fromKey included and
@@ -1375,12 +1375,12 @@ public class PatriciaTrie<K, V> extends 
         private final class EntryIterator extends TrieIterator<Map.Entry<K, V>> {
             
             // values to reset the subtree if we remove it.
-            protected final K prefix; 
-            protected final int offset;
-            protected final int lengthInBits;
-            protected boolean lastOne;
+            private final K prefix; 
+            private final int offset;
+            private final int lengthInBits;
+            private boolean lastOne;
             
-            protected TrieEntry<K, V> subtree; // the subtree to search within
+            private TrieEntry<K, V> subtree; // the subtree to search within
             
             /**
              * Starts iteration at the given entry & search only