Fix compilation error at source level 1.5
This commit is contained in:
parent
3db4053f77
commit
9788ea7291
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user