spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [SPARK-10256] [ML] Removes guava dependency from spark.ml.classification JavaTests
Date Thu, 27 Aug 2015 09:46:25 GMT
Repository: spark
Updated Branches:
  refs/heads/master 75d623079 -> 1a446f75b


[SPARK-10256] [ML] Removes guava dependency from spark.ml.classification JavaTests

Author: Feynman Liang <fliang@databricks.com>

Closes #8447 from feynmanliang/SPARK-10256.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/1a446f75
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/1a446f75
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/1a446f75

Branch: refs/heads/master
Commit: 1a446f75b6cac46caea0217a66abeb226946ac71
Parents: 75d6230
Author: Feynman Liang <fliang@databricks.com>
Authored: Thu Aug 27 10:46:18 2015 +0100
Committer: Sean Owen <sowen@cloudera.com>
Committed: Thu Aug 27 10:46:18 2015 +0100

----------------------------------------------------------------------
 .../org/apache/spark/ml/classification/JavaNaiveBayesSuite.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/1a446f75/mllib/src/test/java/org/apache/spark/ml/classification/JavaNaiveBayesSuite.java
----------------------------------------------------------------------
diff --git a/mllib/src/test/java/org/apache/spark/ml/classification/JavaNaiveBayesSuite.java
b/mllib/src/test/java/org/apache/spark/ml/classification/JavaNaiveBayesSuite.java
index a700c9c..8fd7bf5 100644
--- a/mllib/src/test/java/org/apache/spark/ml/classification/JavaNaiveBayesSuite.java
+++ b/mllib/src/test/java/org/apache/spark/ml/classification/JavaNaiveBayesSuite.java
@@ -18,8 +18,8 @@
 package org.apache.spark.ml.classification;
 
 import java.io.Serializable;
+import java.util.Arrays;
 
-import com.google.common.collect.Lists;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -74,7 +74,7 @@ public class JavaNaiveBayesSuite implements Serializable {
 
   @Test
   public void testNaiveBayes() {
-    JavaRDD<Row> jrdd = jsc.parallelize(Lists.newArrayList(
+    JavaRDD<Row> jrdd = jsc.parallelize(Arrays.asList(
       RowFactory.create(0.0, Vectors.dense(1.0, 0.0, 0.0)),
       RowFactory.create(0.0, Vectors.dense(2.0, 0.0, 0.0)),
       RowFactory.create(1.0, Vectors.dense(0.0, 1.0, 0.0)),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message