[Fb-contrib-commit] SF.net SVN: fb-contrib: [530] trunk/fb-contrib/samples
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2006-05-11 04:43:49
|
Revision: 530 Author: dbrosius Date: 2006-05-10 21:43:40 -0700 (Wed, 10 May 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=530&view=rev Log Message: ----------- more tests Modified Paths: -------------- trunk/fb-contrib/samples/NMCS_Sample.java trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NeedlessMemberCollectionSynchronization.java Modified: trunk/fb-contrib/samples/NMCS_Sample.java =================================================================== --- trunk/fb-contrib/samples/NMCS_Sample.java 2006-05-11 04:20:36 UTC (rev 529) +++ trunk/fb-contrib/samples/NMCS_Sample.java 2006-05-11 04:43:40 UTC (rev 530) @@ -1,6 +1,8 @@ +import java.util.HashSet; import java.util.Hashtable; import java.util.List; import java.util.Map; +import java.util.Set; import java.util.Vector; public class NMCS_Sample @@ -14,6 +16,8 @@ private Map<String, String> test2 = new Hashtable<String, String>(); + private Set<String> test3 = new HashSet<String>(); + public String test1() { StringBuffer sb = new StringBuffer(); @@ -35,4 +39,11 @@ return test2.get("foo"); } + public Set<String> test3() + { + Set<String> temp = test3; + temp.add("Foo"); + return temp; + } + } Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NeedlessMemberCollectionSynchronization.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NeedlessMemberCollectionSynchronization.java 2006-05-11 04:20:36 UTC (rev 529) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NeedlessMemberCollectionSynchronization.java 2006-05-11 04:43:40 UTC (rev 530) @@ -178,6 +178,7 @@ case IN_METHOD: sawMethodOpcode(seen); + break; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |