mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r895431 - /lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/utils/vectors/io/JWriterVectorWriter.java
Date Sun, 03 Jan 2010 16:10:09 GMT
Author: srowen
Date: Sun Jan  3 16:10:08 2010
New Revision: 895431

URL: http://svn.apache.org/viewvc?rev=895431&view=rev
Log:
MAHOUT-203

Modified:
    lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/utils/vectors/io/JWriterVectorWriter.java

Modified: lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/utils/vectors/io/JWriterVectorWriter.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/utils/vectors/io/JWriterVectorWriter.java?rev=895431&r1=895430&r2=895431&view=diff
==============================================================================
--- lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/utils/vectors/io/JWriterVectorWriter.java
(original)
+++ lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/utils/vectors/io/JWriterVectorWriter.java
Sun Jan  3 16:10:08 2010
@@ -43,7 +43,7 @@
         break;
       }
       writer.write(vector.asFormatString());
-      writer.write("\n");
+      writer.write('\n');
 
       result++;
     }
@@ -52,6 +52,7 @@
 
   @Override
   public void close() throws IOException {
-
+    writer.flush();
+    writer.close();
   }
 }



Mime
View raw message