Fix compile errors. See #299

This commit is contained in:
norman 2012-05-03 09:16:45 +02:00
parent 9ab14fba6d
commit abc2877f91
2 changed files with 5 additions and 5 deletions

View File

@ -194,7 +194,7 @@ public abstract class AbstractDiskHttpData extends AbstractHttpData {
read = inputStream.read(bytes); read = inputStream.read(bytes);
} }
localfileChannel.force(false); localfileChannel.force(false);
localfileChannel.close()); localfileChannel.close();
size = written; size = written;
if (definedSize > 0 && definedSize < size) { if (definedSize > 0 && definedSize < size) {
file.delete(); file.delete();

View File

@ -26,8 +26,8 @@ import java.util.TreeMap;
import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.handler.codec.http2.HttpPostBodyUtil.SeekAheadNoBackArrayException; import org.jboss.netty.handler.codec.http.HttpPostBodyUtil.SeekAheadNoBackArrayException;
import org.jboss.netty.handler.codec.http2.HttpPostBodyUtil.SeekAheadOptimize; import org.jboss.netty.handler.codec.http.HttpPostBodyUtil.SeekAheadOptimize;
import org.jboss.netty.handler.codec.http.HttpPostBodyUtil.TransferEncodingMechanism; import org.jboss.netty.handler.codec.http.HttpPostBodyUtil.TransferEncodingMechanism;
/** /**
@ -882,7 +882,7 @@ public class HttpPostRequestDecoder {
throws ErrorDataDecoderException { throws ErrorDataDecoderException {
// --AaB03x or --AaB03x-- // --AaB03x or --AaB03x--
int readerIndex = undecodedChunk.readerIndex(); int readerIndex = undecodedChunk.readerIndex();
skipControlCharacters(undecodedChunk); skipControlCharacters();
skipOneLine(); skipOneLine();
String newline; String newline;
try { try {
@ -923,7 +923,7 @@ public class HttpPostRequestDecoder {
} }
// read many lines until empty line with newline found! Store all data // read many lines until empty line with newline found! Store all data
while (!skipOneLine()) { while (!skipOneLine()) {
skipControlCharacters(undecodedChunk); skipControlCharacters();
String newline; String newline;
try { try {
newline = readLine(); newline = readLine();