Removed @Override to make it work with java 5.

This commit is contained in:
vibul 2012-04-27 09:57:54 +10:00
parent 979bca4b35
commit 45d58e9459
4 changed files with 0 additions and 7 deletions

View File

@ -33,7 +33,6 @@ public class HttpUploadClientHandler extends SimpleChannelUpstreamHandler {
private volatile boolean readingChunks; private volatile boolean readingChunks;
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception { public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
if (!readingChunks) { if (!readingChunks) {
HttpResponse response = (HttpResponse) e.getMessage(); HttpResponse response = (HttpResponse) e.getMessage();
@ -71,7 +70,6 @@ public class HttpUploadClientHandler extends SimpleChannelUpstreamHandler {
} }
} }
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
throws Exception { throws Exception {
e.getCause().printStackTrace(); e.getCause().printStackTrace();

View File

@ -34,7 +34,6 @@ public class HttpUploadClientPipelineFactory implements ChannelPipelineFactory {
this.ssl = ssl; this.ssl = ssl;
} }
@Override
public ChannelPipeline getPipeline() throws Exception { public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation. // Create a default pipeline implementation.
ChannelPipeline pipeline = pipeline(); ChannelPipeline pipeline = pipeline();

View File

@ -87,7 +87,6 @@ public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler {
DiskAttribute.baseDirectory = null; // system temp directory DiskAttribute.baseDirectory = null; // system temp directory
} }
@Override
public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e)
throws Exception { throws Exception {
if (decoder != null) { if (decoder != null) {
@ -95,7 +94,6 @@ public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler {
} }
} }
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception { public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
if (!readingChunks) { if (!readingChunks) {
// clean previous FileUpload if Any // clean previous FileUpload if Any
@ -482,7 +480,6 @@ public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler {
e.getChannel().write(response); e.getChannel().write(response);
} }
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
throws Exception { throws Exception {
logger.error(responseContent.toString(), e.getCause()); logger.error(responseContent.toString(), e.getCause());

View File

@ -24,7 +24,6 @@ import org.jboss.netty.handler.codec.http.HttpRequestDecoder;
import org.jboss.netty.handler.codec.http.HttpResponseEncoder; import org.jboss.netty.handler.codec.http.HttpResponseEncoder;
public class HttpUploadServerPipelineFactory implements ChannelPipelineFactory { public class HttpUploadServerPipelineFactory implements ChannelPipelineFactory {
@Override
public ChannelPipeline getPipeline() throws Exception { public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation. // Create a default pipeline implementation.
ChannelPipeline pipeline = pipeline(); ChannelPipeline pipeline = pipeline();