diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-26 11:55:49 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-03-26 11:55:49 +0000 |
commit | 1808465855a8e2ce554b024ad5ff530457584aed (patch) | |
tree | 376671c3150edecfb4b91e131302aa51242f45a8 /examples/src/main/java | |
parent | d23ad7c1c92a2344ec03bb4c600b766686faf439 (diff) | |
download | spark-1808465855a8e2ce554b024ad5ff530457584aed.tar.gz spark-1808465855a8e2ce554b024ad5ff530457584aed.tar.bz2 spark-1808465855a8e2ce554b024ad5ff530457584aed.zip |
[MINOR] Fix newly added java-lint errors
## What changes were proposed in this pull request?
This PR fixes some newly added java-lint errors(unused-imports, line-lengsth).
## How was this patch tested?
Pass the Jenkins tests.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #11968 from dongjoon-hyun/SPARK-14167.
Diffstat (limited to 'examples/src/main/java')
-rw-r--r-- | examples/src/main/java/org/apache/spark/examples/mllib/JavaCorrelationsExample.java | 3 | ||||
-rw-r--r-- | examples/src/main/java/org/apache/spark/examples/mllib/JavaStratifiedSamplingExample.java | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/main/java/org/apache/spark/examples/mllib/JavaCorrelationsExample.java b/examples/src/main/java/org/apache/spark/examples/mllib/JavaCorrelationsExample.java index fd19b43504..c0fa0b3cac 100644 --- a/examples/src/main/java/org/apache/spark/examples/mllib/JavaCorrelationsExample.java +++ b/examples/src/main/java/org/apache/spark/examples/mllib/JavaCorrelationsExample.java @@ -58,7 +58,8 @@ public class JavaCorrelationsExample { ) ); - // calculate the correlation matrix using Pearson's method. Use "spearman" for Spearman's method. + // calculate the correlation matrix using Pearson's method. + // Use "spearman" for Spearman's method. // If a method is not specified, Pearson's method will be used by default. Matrix correlMatrix = Statistics.corr(data.rdd(), "pearson"); System.out.println(correlMatrix.toString()); diff --git a/examples/src/main/java/org/apache/spark/examples/mllib/JavaStratifiedSamplingExample.java b/examples/src/main/java/org/apache/spark/examples/mllib/JavaStratifiedSamplingExample.java index f5a451019b..c27fba2783 100644 --- a/examples/src/main/java/org/apache/spark/examples/mllib/JavaStratifiedSamplingExample.java +++ b/examples/src/main/java/org/apache/spark/examples/mllib/JavaStratifiedSamplingExample.java @@ -27,7 +27,6 @@ import java.util.*; import scala.Tuple2; import org.apache.spark.api.java.JavaPairRDD; -import org.apache.spark.api.java.function.VoidFunction; // $example off$ public class JavaStratifiedSamplingExample { |