diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-03 10:12:32 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-03-03 10:12:32 +0000 |
commit | b5f02d6743ecb1633b7b13382f76cb8bfc2aa95c (patch) | |
tree | 7f3fc1df17d1bc8cd95ca0eaf3f79b6a47c5a845 /repl/scala-2.11/src/main | |
parent | e97fc7f176f8bf501c9b3afd8410014e3b0e1602 (diff) | |
download | spark-b5f02d6743ecb1633b7b13382f76cb8bfc2aa95c.tar.gz spark-b5f02d6743ecb1633b7b13382f76cb8bfc2aa95c.tar.bz2 spark-b5f02d6743ecb1633b7b13382f76cb8bfc2aa95c.zip |
[SPARK-13583][CORE][STREAMING] Remove unused imports and add checkstyle rule
## What changes were proposed in this pull request?
After SPARK-6990, `dev/lint-java` keeps Java code healthy and helps PR review by saving much time.
This issue aims remove unused imports from Java/Scala code and add `UnusedImports` checkstyle rule to help developers.
## How was this patch tested?
```
./dev/lint-java
./build/sbt compile
```
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #11438 from dongjoon-hyun/SPARK-13583.
Diffstat (limited to 'repl/scala-2.11/src/main')
-rw-r--r-- | repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala | 2 | ||||
-rw-r--r-- | repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala b/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala index 1ae4182947..999e7ad3cc 100644 --- a/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala +++ b/repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala @@ -21,8 +21,8 @@ import java.io.File import scala.tools.nsc.GenericRunnerSettings -import org.apache.spark.util.Utils import org.apache.spark._ +import org.apache.spark.util.Utils import org.apache.spark.sql.SQLContext object Main extends Logging { diff --git a/repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala b/repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala index e91139fb29..7ed6d3b1f9 100644 --- a/repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala +++ b/repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala @@ -17,10 +17,10 @@ package org.apache.spark.repl -import java.io.{BufferedReader, FileReader} +import java.io.BufferedReader import Predef.{println => _, _} -import scala.util.Properties.{jdkHome, javaVersion, versionString, javaVmName} +import scala.util.Properties.{javaVersion, versionString, javaVmName} import scala.tools.nsc.interpreter.{JPrintWriter, ILoop} import scala.tools.nsc.Settings |