mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 01:40:04 +08:00
7177dab5c9
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> * java/util/AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. (listIterator()): Call listIterator(0). (size): New field. Initialize to size(). (hasNext): Test position against size, not size(). (remove): Increment knownMod by one instead of resetting it from modCount. (add): Ditto. (SubList.upMod): Removed. (SubList.set): Don't call upMod() or update knownMod. (SubList.add(int,Object)): Increment modCount instead of calling upMod(). (SubList.remove): Ditto. (SubList.addAll): Don't call backingList.size(). Increment size from c.size(). (SubList.iterator): New method. Call listIterator(0). (SubList.listIterator): New method. Restore code to return an anonymous listIterator implementation (with some changes). * java/util/AbstractSequentialList.java: Throw messages with IndexOutOfBoundsExceptions. (addAll): Add a specnote. * java/util/ArrayList.java (removeRange): Get the math right. (addAll): Increment modCount _before_ creating iterator. * java/util/LinkedList.java: Rewritten, mostly. From-SVN: r37203 |
||
---|---|---|
.. | ||
jar | ||
zip | ||
AbstractCollection.java | ||
AbstractList.java | ||
AbstractMap.java | ||
AbstractSequentialList.java | ||
AbstractSet.java | ||
ArrayList.java | ||
Arrays.java | ||
BasicMapEntry.java | ||
BitSet.java | ||
Bucket.java | ||
Calendar.java | ||
Collection.java | ||
Comparator.java | ||
ConcurrentModificationException.java | ||
Date.java | ||
Dictionary.java | ||
EmptyStackException.java | ||
Enumeration.java | ||
EventListener.java | ||
EventObject.java | ||
GregorianCalendar.java | ||
HashMap.java | ||
Hashtable.java | ||
Iterator.java | ||
LinkedList.java | ||
List.java | ||
ListIterator.java | ||
ListResourceBundle.java | ||
Locale.java | ||
Map.java | ||
MissingResourceException.java | ||
natGregorianCalendar.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 |