[Fb-contrib-commit] SF.net SVN: fb-contrib: [787] trunk/fb-contrib
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-01-28 09:17:10
|
Revision: 787 http://svn.sourceforge.net/fb-contrib/?rev=787&view=rev Author: dbrosius Date: 2007-01-28 01:17:10 -0800 (Sun, 28 Jan 2007) Log Message: ----------- document USS Modified Paths: -------------- trunk/fb-contrib/htdocs/index.html trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseSplit.java Modified: trunk/fb-contrib/htdocs/index.html =================================================================== --- trunk/fb-contrib/htdocs/index.html 2007-01-28 09:14:29 UTC (rev 786) +++ trunk/fb-contrib/htdocs/index.html 2007-01-28 09:17:10 UTC (rev 787) @@ -66,7 +66,11 @@ 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 + Instead, the remove should be called on the iterator itself.</li> + <li><b>[USS] Use String Split</b><br/> + Looks for code that builds an array by using a StringTokenizer to break up + a string and place individual elements into an array. It is simpler to use + String.split instead.</li> </ul> </div> <hr/> Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseSplit.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseSplit.java 2007-01-28 09:14:29 UTC (rev 786) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseSplit.java 2007-01-28 09:17:10 UTC (rev 787) @@ -31,6 +31,12 @@ import edu.umd.cs.findbugs.OpcodeStack; import edu.umd.cs.findbugs.ba.ClassContext; +/** + * looks for code that builds an array by using a StringTokenizer to break up + * a string and place individual elements into an array. It is simpler to use + * String.split instead. + + */ public class UseSplit extends BytecodeScanningDetector { public static final int SEEN_NOTHING = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |