mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdunn...@apache.org
Subject svn commit: r990938 - /mahout/trunk/core/src/main/java/org/apache/mahout/vectors/InteractionValueEncoder.java
Date Mon, 30 Aug 2010 20:50:57 GMT
Author: tdunning
Date: Mon Aug 30 20:50:57 2010
New Revision: 990938

URL: http://svn.apache.org/viewvc?rev=990938&view=rev
Log:
MAHOUT-492 - Fixed static issue caught by Sean and added Locale to toString.

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/vectors/InteractionValueEncoder.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/vectors/InteractionValueEncoder.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/vectors/InteractionValueEncoder.java?rev=990938&r1=990937&r2=990938&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/vectors/InteractionValueEncoder.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/vectors/InteractionValueEncoder.java
Mon Aug 30 20:50:57 2010
@@ -19,9 +19,11 @@ package org.apache.mahout.vectors;
 
 import org.apache.mahout.math.Vector;
 
+import java.util.Locale;
+
 public class InteractionValueEncoder extends FeatureVectorEncoder {
-  private static FeatureVectorEncoder firstEncoder;
-  private static FeatureVectorEncoder secondEncoder;
+  private FeatureVectorEncoder firstEncoder;
+  private FeatureVectorEncoder secondEncoder;
 
   public InteractionValueEncoder(String name, FeatureVectorEncoder encoderOne, FeatureVectorEncoder
encoderTwo) {
     super(name, 2);
@@ -80,7 +82,7 @@ public class InteractionValueEncoder ext
    */
   @Override
   public String asString(String originalForm) {
-    return String.format("%s:%s", getName(), originalForm);
+    return String.format(Locale.ENGLISH, "%s:%s", getName(), originalForm);
   }
 
   @Override



Mime
View raw message