aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/TreeMap.java
AgeCommit message (Collapse)AuthorFilesLines
2001-03-06TreeSet.java (writeObject): Use a for-loop instead of Iterator.hasNext().Bryce McKinlay1-7/+3
2001-03-06 Bryce McKinlay <bryce@albatross.co.nz> * java/util/TreeSet.java (writeObject): Use a for-loop instead of Iterator.hasNext(). 2001-03-05 Jochen Hoenicke <jochen@gnu.org> * java/util/TreeMap.java (writeObject): Use defaultWriteObject() instead of the new JDK1.2 API. This is simpler and makes back-porting the classes to JDK1.1 trivial. (readObject): likewise. From-SVN: r40252
2001-02-16TreeMap.java (nil): Made non-final.Bryce McKinlay1-2/+4
* java/util/TreeMap.java (nil): Made non-final. (clone): Create new nil node for copy. From-SVN: r39736
2001-02-16TreeSet.java (clone): Made subclass safe, use super.clone(), not new.Bryce McKinlay1-3/+12
* java/util/TreeSet.java (clone): Made subclass safe, use super.clone(), not new. * java/util/TreeMap.java (clone): Likewise. From-SVN: r39734
2001-02-14natClass.cc (getSignature): Don't try to dereference param_types if it is null.Bryce McKinlay1-14/+11
* java/lang/natClass.cc (getSignature): Don't try to dereference param_types if it is null. Instead, take this to mean "no parameters". * java/lang/TreeMap.java (TreeIterator.next): Throw NoSuchElementException in preference to ConcurrentModificationException. (TreeIterator.remove): Throw IllegalStateException in preference to ConcurrentModificationException. (SubMap.firstKey): Do a better check for empty SubMap, and if it is, throw a NoSuchElementException. (SubMap.lastKey): Likewise. From-SVN: r39658
2001-02-14re PR libgcj/1758 (java.util package lacks TreeMap)Bryce McKinlay1-0/+1450
* java/util/TreeMap.java: New file. * java/util/TreeSet.java: New file. * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap. * Makefile.in: Rebuilt. * java/util/HashSet.java (clone): Use constructor instead of calling clone on itself. * java/util/SortedSet.java: Sync with classpath. * java/util/HashMap.java (hash): Use if statement instead of ternary, for clarity. Resolves PR libgcj/1758. Resolves PR java/1684. From-SVN: r39657