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

Mario Torre <[email protected]> Wed, 26 Mar 2008 16:07:30 +0000
Newsgroups gmane.comp.java.classpath.cvs
Message-ID <[email protected]>
CVSROOT:	/sources/classpath
Module name:	classpath
Changes by:	Mario Torre <neugens>	08/03/26 16:07:30

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

Log message:
	2008-03-26  Mario Torre  <[email protected]>
	
	    * java/util/concurrent/CopyOnWriteArrayList.java (SubList.set): 
	    (SubList.clear): new method.
	    (SubList.checkMod): fix indentation.
	    (SubList.checkBoundsInclusive):  likewise. 
	    (SubList.checkBoundsExclusive): likewise.
	    (SubList): added synchronization. Now throw
	    IndexOutOfBoundsException instead of IllegalArgumentException
	    when index are out of range.
	    (SubList.size): added synchronization.
	    (SubList.get): likewise.
	    (SubList.listIterator): fixed indentation.
	    (SubList.set): added synchronization. Update the state of the storage
	    after modification.
	    (SubList.add): likewise.
	    (SubList.remove): likewise.
	    (SubList.addAll): likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/concurrent/CopyOnWriteArrayList.java?cvsroot=classpath&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9567&r2=1.9568