diff options
author | Feynman Liang <fliang@databricks.com> | 2015-08-27 10:46:18 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-08-27 10:46:18 +0100 |
commit | 1a446f75b6cac46caea0217a66abeb226946ac71 (patch) | |
tree | 0012504396b2a75583b21d37f7e6f155ca0a8df2 /mllib/src/test/java/org | |
parent | 75d62307946283b03bec6aaf1bdd4f2b08c93915 (diff) | |
download | spark-1a446f75b6cac46caea0217a66abeb226946ac71.tar.gz spark-1a446f75b6cac46caea0217a66abeb226946ac71.tar.bz2 spark-1a446f75b6cac46caea0217a66abeb226946ac71.zip |
[SPARK-10256] [ML] Removes guava dependency from spark.ml.classification JavaTests
Author: Feynman Liang <fliang@databricks.com>
Closes #8447 from feynmanliang/SPARK-10256.
Diffstat (limited to 'mllib/src/test/java/org')
-rw-r--r-- | mllib/src/test/java/org/apache/spark/ml/classification/JavaNaiveBayesSuite.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 a700c9cddb..8fd7bf55a2 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)), |