[commit-cp] classpath java/util/concurrent/CopyOnWriteArray...

Mario Torre <[email protected]>
Newsgroups gmane.comp.java.classpath.cvs
Message-ID <[email protected]>
CVSROOT:	/sources/classpath
Module name:	classpath
Changes by:	Mario Torre <neugens>	07/11/24 22:31:08

Modified files:
	java/util/concurrent: CopyOnWriteArrayList.java 
	.              : ChangeLog 

Log message:
	2007-11-24  Mario Torre  <[email protected]>
	
		* java/util/concurrent/CopyOnWriteArrayList.java: 
		(addAll): fix implementation, now add elements in the correct position.
		(addAllAbsent): fixed typos (whoops!).
		(remove(int)): fixed range in arraycopy that was causing for incorrect
		values to be inserted in the list. Refactored to give variables better
		names.
		(remove(Object)): refactored to give better names to variable.
		(listIterator): fix to set the starting index.
	    (listIterator.previous): fix to decrement element position before
	    returning the previous element in the iterator.  

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/concurrent/CopyOnWriteArrayList.java?cvsroot=classpath&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9439&r2=1.9440
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.