diff options
author | NirmalReddy <nirmal.reddy@imaginea.com> | 2014-02-18 14:44:36 -0800 |
---|---|---|
committer | Aaron Davidson <aaron@databricks.com> | 2014-02-18 14:44:36 -0800 |
commit | ccb327a49a7323efd98a33223c438a670bba7cec (patch) | |
tree | a783ac1025e79666dda960db6241900b55644ec4 /core/src/main/java/org | |
parent | f74ae0ebcee59b70a56d34bdf63e3d1b38e2bd59 (diff) | |
download | spark-ccb327a49a7323efd98a33223c438a670bba7cec.tar.gz spark-ccb327a49a7323efd98a33223c438a670bba7cec.tar.bz2 spark-ccb327a49a7323efd98a33223c438a670bba7cec.zip |
Optimized imports
Optimized imports and arranged according to scala style guide @
https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide#SparkCodeStyleGuide-Imports
Author: NirmalReddy <nirmal.reddy@imaginea.com>
Author: NirmalReddy <nirmal_reddy2000@yahoo.com>
Closes #613 from NirmalReddy/opt-imports and squashes the following commits:
578b4f5 [NirmalReddy] imported java.lang.Double as JDouble
a2cbcc5 [NirmalReddy] addressed the comments
776d664 [NirmalReddy] Optimized imports in core
Diffstat (limited to 'core/src/main/java/org')
-rw-r--r-- | core/src/main/java/org/apache/spark/network/netty/FileClient.java | 4 | ||||
-rw-r--r-- | core/src/main/java/org/apache/spark/network/netty/FileServerHandler.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/java/org/apache/spark/network/netty/FileClient.java b/core/src/main/java/org/apache/spark/network/netty/FileClient.java index d2d778b756..0d31894d6e 100644 --- a/core/src/main/java/org/apache/spark/network/netty/FileClient.java +++ b/core/src/main/java/org/apache/spark/network/netty/FileClient.java @@ -17,6 +17,8 @@ package org.apache.spark.network.netty; +import java.util.concurrent.TimeUnit; + import io.netty.bootstrap.Bootstrap; import io.netty.channel.Channel; import io.netty.channel.ChannelOption; @@ -27,8 +29,6 @@ import io.netty.channel.socket.oio.OioSocketChannel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.concurrent.TimeUnit; - class FileClient { private static final Logger LOG = LoggerFactory.getLogger(FileClient.class.getName()); diff --git a/core/src/main/java/org/apache/spark/network/netty/FileServerHandler.java b/core/src/main/java/org/apache/spark/network/netty/FileServerHandler.java index 3ac045f944..c0133e19c7 100644 --- a/core/src/main/java/org/apache/spark/network/netty/FileServerHandler.java +++ b/core/src/main/java/org/apache/spark/network/netty/FileServerHandler.java @@ -23,11 +23,11 @@ import java.io.FileInputStream; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import io.netty.channel.DefaultFileRegion; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.apache.spark.storage.BlockId; import org.apache.spark.storage.FileSegment; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; class FileServerHandler extends SimpleChannelInboundHandler<String> { |