summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/TreeMap.java
Commit message (Collapse)AuthorAgeFilesLines
* 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>bryce2001-03-061-7/+3
| | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40252 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TreeMap.java (nil): Made non-final.bryce2001-02-161-2/+4
| | | | | | | (clone): Create new nil node for copy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39736 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TreeSet.java (clone): Made subclass safe, usebryce2001-02-161-3/+12
| | | | | | | | super.clone(), not new. * java/util/TreeMap.java (clone): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39734 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (getSignature): Don't try to dereferencebryce2001-02-141-14/+11
| | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39658 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TreeMap.java: New file.bryce2001-02-141-0/+1450
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39657 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud