[Fb-contrib-commit] SF.net SVN: fb-contrib: [465] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/det
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2006-04-17 15:47:26
|
Revision: 465 Author: dbrosius Date: 2006-04-17 08:47:18 -0700 (Mon, 17 Apr 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=465&view=rev Log Message: ----------- Manually cleanup memory now that StatelessDetector is removed. Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/FinalParameters.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/FinalParameters.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/FinalParameters.java 2006-04-17 15:43:17 UTC (rev 464) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/FinalParameters.java 2006-04-17 15:47:18 UTC (rev 465) @@ -39,7 +39,6 @@ import edu.umd.cs.findbugs.BugReporter; import edu.umd.cs.findbugs.BytecodeScanningDetector; import edu.umd.cs.findbugs.SourceLineAnnotation; -import edu.umd.cs.findbugs.StatelessDetector; import edu.umd.cs.findbugs.ba.AnalysisContext; import edu.umd.cs.findbugs.ba.ClassContext; import edu.umd.cs.findbugs.ba.SourceFile; @@ -50,7 +49,7 @@ * help the jvm optimize the invocation of this method, you should consider defining these parameters * as final. */ -public class FinalParameters extends BytecodeScanningDetector implements StatelessDetector +public class FinalParameters extends BytecodeScanningDetector { private BugReporter bugReporter; private Set<Integer> changedParms; @@ -72,16 +71,6 @@ } /** - * clone this detector so that it can be a StatelessDetector - * - * @return a clone of this object - */ - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - /** * overrides the visitor to initialize the 'has source' flag * * @param classContext the context object for the currently parsed class @@ -110,6 +99,8 @@ parmCount = Type.getArgumentTypes(obj.getSignature()).length; super.visitMethod(obj); + srcLineAnnotation = null; + sourceLines = null; } /** @@ -216,6 +207,7 @@ } bi.addString(parmName); } + changedParms = null; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |