[Fb-contrib-commit] SF.net SVN: fb-contrib: [740] trunk/fb-contrib
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-12-19 08:19:27
|
Revision: 740 http://svn.sourceforge.net/fb-contrib/?rev=740&view=rev Author: dbrosius Date: 2006-12-19 00:19:21 -0800 (Tue, 19 Dec 2006) Log Message: ----------- doc Modified Paths: -------------- trunk/fb-contrib/htdocs/index.html trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java Modified: trunk/fb-contrib/htdocs/index.html =================================================================== --- trunk/fb-contrib/htdocs/index.html 2006-12-19 08:16:30 UTC (rev 739) +++ trunk/fb-contrib/htdocs/index.html 2006-12-19 08:19:21 UTC (rev 740) @@ -62,6 +62,11 @@ Looks for classes that implement interfaces by relying on methods being implemented in superclasses, even though the superclass knows nothing about the interface being implemented by the child.</li> + <li><b>[DWI] Deleting While Iterating</b><br/> + Looks for deletion of items from a collection using the remove method + of the collection at the same time that the collection is being iterated on. If + this occurs the iterator will become invalid and throw a ConcurrentModificationException. + Instead, the remove should be called on the iterator itself.</li </ul> </div> <hr/> Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java 2006-12-19 08:16:30 UTC (rev 739) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java 2006-12-19 08:19:21 UTC (rev 740) @@ -39,6 +39,12 @@ import edu.umd.cs.findbugs.ba.ClassContext; import edu.umd.cs.findbugs.ba.XField; +/** + * looks for deletion of items from a collection using the remove method + * of the collection at the same time that the collection is being iterated on. If + * this occurs the iterator will become invalid and throw a ConcurrentModificationException. + * Instead, the remove should be called on the iterator itself. + */ public class DeletingWhileIterating extends BytecodeScanningDetector { private static JavaClass collectionClass; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |