2000-10-29 Bryce McKinlay <bryce@albatross.co.nz> * java/util/AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. (clear): Ditto. (contains): Ditto. Simplify loop. (containsAll): Ditto. (remove): Ditto. (removeAll): Ditto. (retainAll): Ditto. (toArray): Ditto. (toString): Ditto. Use string concatenation operators, not StringBuffer. * java/util/AbstractList.java (addAll): Use size() instead of hasNext() in iterator loop. (equals): Ditto. (hashCode): Ditto. (indexOf): Ditto. Don't take null check outside of the loop. (iterator): Return an AbstractListItr instead of anonymous class. (lastIndexOf): Use a for loop bounded by size() instead of hasPrevious() in iterator loop. (listIterator): Return an AbstractListItr. (removeRange): Remove bounds checking code and docs. (AbstractListItr): New inner class. Code moved here from listIterator(). (SubList.iterator): Removed. Use default implementation from AbstractList instead. (SubList.listIterator): As above. * java/util/AbstractMap.java (clear): Use a for loop bounded by size() instead of hasNext() in iterator loop. (containsValue): Ditto. (equals): Ditto. (get): Ditto. (put): Ditto. (putAll): Ditto. (remove): Ditto. (toString): Ditto. Use string concatenation operators, not StringBuffer. * java/util/AbstractSequentialList.java (addAll): Use a for loop bounded by size() instead of hasNext() in iterator loop. * java/util/AbstractSet.java (hashCode): Don't catch exception as part of normal execution flow. Do an explicit null check instead. * java/util/ArrayList.java (_iSize): Rename to `size'. (_arData): Rename to `data'. (get): Check lower bounds also. Simplify IndexOutOfBoundsException message. (remove): Ditto. (removeRange): Make protected. Don't check bounds. (add): Check lower bounds also. Simplify IndexOutOfBoundsException message. (addAll (Collection)): Use a size-bounded for loop instead of hasNext() check. (addAll (int, Collection)): Check lower bounds. Simplify exception string. (clone): Clone the data array too. (indexOf): Inline doesEqual(). (lastIndexOf): Ditto. (clear): Don't set array data to null. (set): Check lower bounds. Simplify exception string. (toArray): Correct comment. (trimToSize): Don't update modCount, this is not a structural change. Add comment. * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods implemented. (toString): Declare `bit' as long, not int. (data): Made package-private, not private. From-SVN: r37116
| Name | 
 Last commit 
 | 
Last update | 
|---|---|---|
| .. | ||
| doc | Loading commit data... | |
| gcj | Loading commit data... | |
| gnu | Loading commit data... | |
| include | Loading commit data... | |
| java | Loading commit data... | |
| libltdl | Loading commit data... | |
| scripts | Loading commit data... | |
| sysdep | Loading commit data... | |
| testsuite | Loading commit data... | |
| COPYING | Loading commit data... | |
| ChangeLog | Loading commit data... | |
| ChangeLog-1999 | Loading commit data... | |
| LIBGCJ_LICENSE | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| NEWS | Loading commit data... | |
| README | Loading commit data... | |
| THANKS | Loading commit data... | |
| acconfig.h | Loading commit data... | |
| acinclude.m4 | Loading commit data... | |
| aclocal.m4 | Loading commit data... | |
| addr2name.awk | Loading commit data... | |
| boehm.cc | Loading commit data... | |
| chartables.pl | Loading commit data... | |
| configure | Loading commit data... | |
| configure.host | Loading commit data... | |
| configure.in | Loading commit data... | |
| defineclass.cc | Loading commit data... | |
| exception.cc | Loading commit data... | |
| gij.cc | Loading commit data... | |
| interpret.cc | Loading commit data... | |
| jni.cc | Loading commit data... | |
| libgcj-test.spec.in | Loading commit data... | |
| libgcj.spec.in | Loading commit data... | |
| libgcjdata.c | Loading commit data... | |
| libtool-version | Loading commit data... | |
| mauve-libgcj | Loading commit data... | |
| name-finder.cc | Loading commit data... | |
| no-threads.cc | Loading commit data... | |
| nogc.cc | Loading commit data... | |
| posix-threads.cc | Loading commit data... | |
| posix.cc | Loading commit data... | |
| prims.cc | Loading commit data... | |
| resolve.cc | Loading commit data... | |
| win32-threads.cc | Loading commit data... |