Skip to content
Snippets Groups Projects
Commit 9115a5de authored by Binh Nguyen's avatar Binh Nguyen
Browse files

Remove import * and fix some formatting

parent 040dd3ec
No related branches found
No related tags found
No related merge requests found
......@@ -20,10 +20,10 @@ package org.apache.spark.network.netty;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.oio.OioEventLoopGroup;
import io.netty.channel.socket.oio.OioSocketChannel;
import io.netty.util.concurrent.EventExecutorGroup;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -83,7 +83,7 @@ class FileClient {
channel = null;
}
if (group!=null) {
if (group != null) {
group.shutdownGracefully();
group = null;
bootstrap = null;
......
......@@ -17,20 +17,17 @@
package org.apache.spark.network.netty;
import java.net.InetSocketAddress;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoop;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.oio.OioEventLoopGroup;
import io.netty.channel.socket.oio.OioServerSocketChannel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.InetSocketAddress;
/**
* Server that accept the path of a file an echo back its content.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment