[Fb-contrib-commit] SF.net SVN: fb-contrib:[1470] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/d
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-11 03:52:23
|
Revision: 1470
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1470&view=rev
Author: dbrosius
Date: 2010-01-11 03:52:17 +0000 (Mon, 11 Jan 2010)
Log Message:
-----------
fix bad static access use
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java 2010-01-11 03:50:53 UTC (rev 1469)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java 2010-01-11 03:52:17 UTC (rev 1470)
@@ -35,17 +35,8 @@
public class UseToArray extends BytecodeScanningDetector
{
- private static JavaClass collectionClass;
- private static ClassNotFoundException ex;
- static {
- try {
- collectionClass = Repository.lookupClass("java/util/Collection");
- } catch (ClassNotFoundException cnfe) {
- collectionClass = null;
- ex = cnfe;
- }
- }
-
+ private JavaClass collectionClass;
+ private ClassNotFoundException ex;
private BugReporter bugReporter;
private OpcodeStack stack;
private Map<Integer, Object> userValues;
@@ -56,6 +47,12 @@
*/
public UseToArray(BugReporter bugReporter) {
this.bugReporter = bugReporter;
+ try {
+ collectionClass = Repository.lookupClass("java/util/Collection");
+ } catch (ClassNotFoundException cnfe) {
+ collectionClass = null;
+ ex = cnfe;
+ }
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|