aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2000-12-11 03:47:48 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2000-12-11 03:47:48 +0000
commit488d42af6f3f61ea75656c994ad9722a6e8e6af9 (patch)
treea87887486e291036f5eac4a8533c9b4456c7262d /gcc/cpplib.c
parenta0932f7d1ae8df5e6d975821546353c7e76d941b (diff)
downloadgcc-488d42af6f3f61ea75656c994ad9722a6e8e6af9.zip
gcc-488d42af6f3f61ea75656c994ad9722a6e8e6af9.tar.gz
gcc-488d42af6f3f61ea75656c994ad9722a6e8e6af9.tar.bz2
Makefile.am: Add HashSet.java and java/lang/ref classes.
* Makefile.am: Add HashSet.java and java/lang/ref classes. Remove BasicMapEntry.java and Bucket.java. * Makefile.in: Rebuilt. * java/util/HashMap.java: Rewritten. * java/util/HashSet.java: Imported from classpath. * java/util/WeakHashMap.java: Imported from classpath. * java/util/Hashtable.java: Rewritten based on new HashMap code. * java/util/Bucket.java: Deleted. * java/util/BasicMapEntry.java: Deleted. * java/util/Collections.java (search): Use a for-loop, not iterator hasNext(). (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out of elements in source. (max): Use a for-loop. (min): Ditto. (reverse): Keep track of positions instead of using Iterator's nextIndex() and previousIndex(). (shuffle(List)): Initialize defaultRandom if required using double-check thread safety idiom. Call two-argument shuffle method using defaultRandom. (defaultRandom): New field. (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of using previousIndex() and nextIndex(). (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry. * java/util/AbstractCollection.java (toString): Use a StringBuffer. * java/util/AbstractMap.java (toString): Use StringBuffer. * java/lang/ref/PhantomReference.java: Imported from classpath. * java/lang/ref/SoftReference.java: Ditto. * java/lang/ref/Reference.java: Ditto. * java/lang/ref/WeakReference.java: Ditto. * java/lang/ref/ReferenceQueue.java: Ditto. From-SVN: r38183
Diffstat (limited to 'gcc/cpplib.c')
0 files changed, 0 insertions, 0 deletions