Revision: 584
Author: dbrosius
Date: 2006-08-04 20:29:36 -0700 (Fri, 04 Aug 2006)
ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=584&view=rev
Log Message:
-----------
clear the statistics, each run
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/CollectStatistics.java
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/Statistics.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/CollectStatistics.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/CollectStatistics.java 2006-08-04 14:24:59 UTC (rev 583)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/CollectStatistics.java 2006-08-05 03:29:36 UTC (rev 584)
@@ -15,11 +15,10 @@
private static final int SG_SAW_GETFIELD = 2;
private static final int SG_SAW_RETURN = 3;
- private Statistics statistics = Statistics.getStatistics();
private int sgState;
public CollectStatistics(BugReporter bugReporter) {
-
+ Statistics.getStatistics().clear();
}
@Override
@@ -67,7 +66,7 @@
case SG_SAW_GETFIELD:
if ((seen >= IRETURN) && (seen <= ARETURN)) {
- statistics.addSimpleGetter(getClassName(), getMethodName(), getMethodSig());
+ Statistics.getStatistics().addSimpleGetter(getClassName(), getMethodName(), getMethodSig());
}
sgState = SG_INVALID;
break;
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/Statistics.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/Statistics.java 2006-08-04 14:24:59 UTC (rev 583)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/collect/Statistics.java 2006-08-05 03:29:36 UTC (rev 584)
@@ -9,9 +9,11 @@
private Set<String> simpleGetters = new HashSet<String>();
+ private Statistics() {
+
+ }
- public static Statistics getStatistics()
- {
+ public static Statistics getStatistics() {
return statistics;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|