mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdunn...@apache.org
Subject svn commit: r1396903 - in /mahout/trunk/math/src: main/java-templates/org/apache/mahout/math/map/ main/java-templates/org/apache/mahout/math/set/ test/java-templates/org/apache/mahout/math/map/
Date Thu, 11 Oct 2012 05:06:00 GMT
Author: tdunning
Date: Thu Oct 11 05:05:59 2012
New Revision: 1396903

URL: http://svn.apache.org/viewvc?rev=1396903&view=rev
Log:
MAHOUT-1096 - TIny style fixes in templates

Modified:
    mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/map/OpenKeyTypeValueTypeHashMap.java.t
    mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/set/OpenKeyTypeHashSet.java.t
    mahout/trunk/math/src/test/java-templates/org/apache/mahout/math/map/OpenObjectValueTypeHashMapTest.java.t

Modified: mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/map/OpenKeyTypeValueTypeHashMap.java.t
URL: http://svn.apache.org/viewvc/mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/map/OpenKeyTypeValueTypeHashMap.java.t?rev=1396903&r1=1396902&r2=1396903&view=diff
==============================================================================
--- mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/map/OpenKeyTypeValueTypeHashMap.java.t
(original)
+++ mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/map/OpenKeyTypeValueTypeHashMap.java.t
Thu Oct 11 05:05:59 2012
@@ -494,7 +494,7 @@ public class Open${keyTypeCap}${valueTyp
    *                                  maxLoadFactor)</tt>.
    */
   @Override
-  protected void setUp(int initialCapacity, double minLoadFactor, double maxLoadFactor) {
+  final void setUp(int initialCapacity, double minLoadFactor, double maxLoadFactor) {
     int capacity = initialCapacity;
     super.setUp(capacity, minLoadFactor, maxLoadFactor);
     capacity = nextPrime(capacity);

Modified: mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/set/OpenKeyTypeHashSet.java.t
URL: http://svn.apache.org/viewvc/mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/set/OpenKeyTypeHashSet.java.t?rev=1396903&r1=1396902&r2=1396903&view=diff
==============================================================================
--- mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/set/OpenKeyTypeHashSet.java.t
(original)
+++ mahout/trunk/math/src/main/java-templates/org/apache/mahout/math/set/OpenKeyTypeHashSet.java.t
Thu Oct 11 05:05:59 2012
@@ -363,7 +363,7 @@ public class Open${keyTypeCap}HashSet ex
    *                                  maxLoadFactor)</tt>.
    */
   @Override
-  protected void setUp(int initialCapacity, double minLoadFactor, double maxLoadFactor) {
+  final void setUp(int initialCapacity, double minLoadFactor, double maxLoadFactor) {
     int capacity = initialCapacity;
     super.setUp(capacity, minLoadFactor, maxLoadFactor);
     capacity = nextPrime(capacity);

Modified: mahout/trunk/math/src/test/java-templates/org/apache/mahout/math/map/OpenObjectValueTypeHashMapTest.java.t
URL: http://svn.apache.org/viewvc/mahout/trunk/math/src/test/java-templates/org/apache/mahout/math/map/OpenObjectValueTypeHashMapTest.java.t?rev=1396903&r1=1396902&r2=1396903&view=diff
==============================================================================
--- mahout/trunk/math/src/test/java-templates/org/apache/mahout/math/map/OpenObjectValueTypeHashMapTest.java.t
(original)
+++ mahout/trunk/math/src/test/java-templates/org/apache/mahout/math/map/OpenObjectValueTypeHashMapTest.java.t
Thu Oct 11 05:05:59 2012
@@ -140,7 +140,7 @@ public class OpenObject${valueTypeCap}Ha
     OpenObject${valueTypeCap}HashMap<String> map = new OpenObject${valueTypeCap}HashMap<String>();
     map.put("Eleven", (${valueType})11);
     assertTrue(map.containsKey("Eleven"));
-    assertTrue(map.containsKey(new String("Eleven")));
+    assertTrue(map.containsKey("Eleven"));
     assertFalse(map.containsKey("Twelve"));
   }
   
@@ -265,7 +265,7 @@ public class OpenObject${valueTypeCap}Ha
     map.put("Thirteen", (${valueType}) 13);
     map.put("Fourteen", (${valueType}) 14);
     map.adjustOrPutValue("Eleven", (${valueType})1, (${valueType})3);
-    assertEquals(14, map.get(new String("Eleven")) ${valueEpsilon});
+    assertEquals(14, map.get("Eleven") ${valueEpsilon});
     map.adjustOrPutValue("Fifteen", (${valueType})1, (${valueType})3);
     assertEquals(1, map.get("Fifteen") ${valueEpsilon});
   }



Mime
View raw message