You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ro...@apache.org on 2009/10/19 02:05:02 UTC

svn commit: r826562 - in /lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth: ParallelFPGrowthReducer.java fpgrowth/FPTreeDepthCache.java fpgrowth/Pattern.java

Author: robinanil
Date: Mon Oct 19 00:05:02 2009
New Revision: 826562

URL: http://svn.apache.org/viewvc?rev=826562&view=rev
Log:
removed some findbugs warnings from PFPGrowth

Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/ParallelFPGrowthReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/FPTreeDepthCache.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/Pattern.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/ParallelFPGrowthReducer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/ParallelFPGrowthReducer.java?rev=826562&r1=826561&r2=826562&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/ParallelFPGrowthReducer.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/ParallelFPGrowthReducer.java Mon Oct 19 00:05:02 2009
@@ -111,8 +111,8 @@
     }
     maxHeapSize = Integer.valueOf(params.get("maxHeapSize", "50"));
     minSupport = Integer.valueOf(params.get("minSupport", "3"));
-    FPTreeDepthCache.FirstLevelCacheSize = Integer.valueOf(params
+    FPTreeDepthCache.firstLevelCacheSize = Integer.valueOf(params
         .get("treeCacheSize", Integer
-            .toString(FPTreeDepthCache.FirstLevelCacheSize)));
+            .toString(FPTreeDepthCache.firstLevelCacheSize)));
   }
 }

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/FPTreeDepthCache.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/FPTreeDepthCache.java?rev=826562&r1=826561&r2=826562&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/FPTreeDepthCache.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/FPTreeDepthCache.java Mon Oct 19 00:05:02 2009
@@ -23,12 +23,12 @@
 
 public class FPTreeDepthCache {
 
-  public static int FirstLevelCacheSize = 5;
+  public static int firstLevelCacheSize = 5;
 
   final private ArrayList<FPTree> treeCache = new ArrayList<FPTree>();
 
   final private LeastKCache<Integer, FPTree> firstLevelCache = new LeastKCache<Integer, FPTree>(
-      FirstLevelCacheSize);
+      firstLevelCacheSize);
 
   final public FPTree getTree(int level) {
     while (treeCache.size() < level + 1) {

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/Pattern.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/Pattern.java?rev=826562&r1=826561&r2=826562&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/Pattern.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth/Pattern.java Mon Oct 19 00:05:02 2009
@@ -20,7 +20,7 @@
 import java.io.Serializable;
 import java.util.Arrays;
 
-public class Pattern implements Serializable, Cloneable {
+public class Pattern implements Serializable {
 
   private static final long serialVersionUID = 8698199782842762173L;