mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 21:19:58 +08:00
488d42af6f
* 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 |
||
---|---|---|
.. | ||
jar | ||
zip | ||
AbstractCollection.java | ||
AbstractList.java | ||
AbstractMap.java | ||
AbstractSequentialList.java | ||
AbstractSet.java | ||
ArrayList.java | ||
Arrays.java | ||
BitSet.java | ||
Calendar.java | ||
Collection.java | ||
Collections.java | ||
Comparator.java | ||
ConcurrentModificationException.java | ||
Date.java | ||
Dictionary.java | ||
EmptyStackException.java | ||
Enumeration.java | ||
EventListener.java | ||
EventObject.java | ||
GregorianCalendar.java | ||
HashMap.java | ||
HashSet.java | ||
Hashtable.java | ||
Iterator.java | ||
LinkedList.java | ||
List.java | ||
ListIterator.java | ||
ListResourceBundle.java | ||
Locale.java | ||
Map.java | ||
MissingResourceException.java | ||
natGregorianCalendar.cc | ||
natTimeZone.cc | ||
NoSuchElementException.java | ||
Observable.java | ||
Observer.java | ||
Properties.java | ||
PropertyPermission.java | ||
PropertyResourceBundle.java | ||
Random.java | ||
ResourceBundle.java | ||
Set.java | ||
SimpleTimeZone.java | ||
SortedMap.java | ||
SortedSet.java | ||
Stack.java | ||
StringTokenizer.java | ||
Timer.java | ||
TimerTask.java | ||
TimeZone.java | ||
TooManyListenersException.java | ||
Vector.java | ||
WeakHashMap.java |