/[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.19 by ericb, Wed Feb 20 23:56:46 2002 UTC revision 1.20 by ericb, Fri May 3 04:25:24 2002 UTC
# Line 623  public class TreeMap extends AbstractMap Line 623  public class TreeMap extends AbstractMap
623      Node n = getNode(key);      Node n = getNode(key);
624      if (n == nil)      if (n == nil)
625        return null;        return null;
626        // Note: removeNode can alter the contents of n, so save value now.
627        Object result = n.value;
628      removeNode(n);      removeNode(n);
629      return n.value;      return result;
630    }    }
631    
632    /**    /**
# Line 1768  public class TreeMap extends AbstractMap Line 1770  public class TreeMap extends AbstractMap
1770              SubMap.this.clear();              SubMap.this.clear();
1771            }            }
1772          };          };
1773        return this.keys;        return this.values;
1774      }      }
1775    } // class SubMap      } // class SubMap  
1776  } // class TreeMap  } // class TreeMap

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

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