summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/LinkedList.java
Commit message (Collapse)AuthorAgeFilesLines
* * java/util/LinkedList.java (clone): Clear the copy list with clear(),bryce2001-07-171-8/+2
| | | | | | | not by setting its size field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44057 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FilePermission.java: Made class final per spec.warrenl2000-12-041-1/+1
| | | | | | | | | * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed method name to match spec (fixed typo). * java/util/LinkedList.java: Implements List. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37993 138bc75d-0d04-0410-961f-82ee72b054a4
* From Adam Welc <welc@cs.purdue.edu>:bryce2000-12-021-1/+11
| | | | | | | | | * java/util/LinkedList.java (removeFirst): Update `first' field. Handle the last == first case. (removeLast): Update `last' field. Handle the last == first case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37940 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-031-7/+23
| | | | | | | | | | | | | * java/util/AbstractList.java (SubList): Make it a top-level private class. * java/util/LinkedList.java (remove): Do update modCount and knownMod. (add): Ditto. * Makefile.am (ordinary_java_source_files): Add LinkedList.java. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37218 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-021-411/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37203 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-27 Anthony Green <green@redhat.com>green2000-08-271-0/+584
* java/util/ArrayList.java, java/util/Timer.java, java/util/LinkedList.java, java/util/TimerTask.java, java/util/HashMap.java, java/util/AbstractMap.java, java/util/SortedMap.java, java/util/AbstractSequentialList.java, java/util/SortedSet.java: Imported from GNU Classpath. * Makefile.in: Rebuilt. * Makefile.am: Added new files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36006 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud