/[classpath]/classpath/java/util/TreeMap.java
ViewVC logotype

Diff of /classpath/java/util/TreeMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by ericb, Fri May 3 04:25:24 2002 UTC revision 1.21 by ericb, Sat Dec 21 20:15:08 2002 UTC
# Line 865  public class TreeMap extends AbstractMap Line 865  public class TreeMap extends AbstractMap
865      int rowsize;      int rowsize;
866    
867      // Fill each row that is completely full of nodes.      // Fill each row that is completely full of nodes.
868      for (rowsize = 2; rowsize + rowsize < count; rowsize <<= 1)      for (rowsize = 2; rowsize + rowsize <= count; rowsize <<= 1)
869        {        {
870          Node parent = row;          Node parent = row;
871          Node last = null;          Node last = null;
# Line 1468  public class TreeMap extends AbstractMap Line 1468  public class TreeMap extends AbstractMap
1468       */       */
1469      public void remove()      public void remove()
1470      {      {
       if (knownMod != modCount)  
         throw new ConcurrentModificationException();  
1471        if (last == null)        if (last == null)
1472          throw new IllegalStateException();          throw new IllegalStateException();
1473          if (knownMod != modCount)
1474            throw new ConcurrentModificationException();
1475    
1476        removeNode(last);        removeNode(last);
1477        last = null;        last = null;

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26