aboutsummaryrefslogtreecommitdiff
path: root/mllib/src
diff options
context:
space:
mode:
authorFeynman Liang <fliang@databricks.com>2015-08-27 10:46:18 +0100
committerSean Owen <sowen@cloudera.com>2015-08-27 10:46:18 +0100
commit1a446f75b6cac46caea0217a66abeb226946ac71 (patch)
tree0012504396b2a75583b21d37f7e6f155ca0a8df2 /mllib/src
parent75d62307946283b03bec6aaf1bdd4f2b08c93915 (diff)
downloadspark-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')
-rw-r--r--mllib/src/test/java/org/apache/spark/ml/classification/JavaNaiveBayesSuite.java4
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)),