Fix compilation error at source level 1.5

This commit is contained in:
Trustin Lee 2012-03-30 12:03:10 +09:00
parent 3db4053f77
commit 9788ea7291

View File

@ -177,12 +177,10 @@ public class HttpStaticFileServerHandler extends SimpleChannelUpstreamHandler {
new DefaultFileRegion(raf.getChannel(), 0, fileLength);
writeFuture = ch.write(region);
writeFuture.addListener(new ChannelFutureProgressListener() {
@Override
public void operationComplete(ChannelFuture future) {
region.releaseExternalResources();
}
@Override
public void operationProgressed(
ChannelFuture future, long amount, long current, long total) {
System.out.printf("%s: %d / %d (+%d)%n", path, current, total, amount);