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);
}
localfileChannel.force(false);
localfileChannel.close());
localfileChannel.close();
size = written;
if (definedSize > 0 && definedSize < size) {
file.delete();

View File

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