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 /common/network-shuffle/src | |
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 'common/network-shuffle/src')
2 files changed, 0 insertions, 2 deletions
diff --git a/common/network-shuffle/src/main/java/org/apache/spark/network/sasl/ShuffleSecretManager.java b/common/network-shuffle/src/main/java/org/apache/spark/network/sasl/ShuffleSecretManager.java index 351c7930a9..cdce297233 100644 --- a/common/network-shuffle/src/main/java/org/apache/spark/network/sasl/ShuffleSecretManager.java +++ b/common/network-shuffle/src/main/java/org/apache/spark/network/sasl/ShuffleSecretManager.java @@ -24,7 +24,6 @@ import java.util.concurrent.ConcurrentHashMap; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.spark.network.sasl.SecretKeyHolder; import org.apache.spark.network.util.JavaUtils; /** diff --git a/common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleSecuritySuite.java b/common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleSecuritySuite.java index 08ddb3755b..acc1168f83 100644 --- a/common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleSecuritySuite.java +++ b/common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleSecuritySuite.java @@ -30,7 +30,6 @@ import org.apache.spark.network.TestUtils; import org.apache.spark.network.TransportContext; import org.apache.spark.network.sasl.SaslServerBootstrap; import org.apache.spark.network.sasl.SecretKeyHolder; -import org.apache.spark.network.server.RpcHandler; import org.apache.spark.network.server.TransportServer; import org.apache.spark.network.server.TransportServerBootstrap; import org.apache.spark.network.shuffle.protocol.ExecutorShuffleInfo; |