Created
April 21, 2014 13:47
-
-
Save mavenugo/11143238 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ovsdb/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/JsonRpcDecoder.java b/ovsdb/src/main/java/org/opendaylight/ovsdb/lib/jso | |
index 0c90936..20dd6d1 100644 | |
--- a/ovsdb/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/JsonRpcDecoder.java | |
+++ b/ovsdb/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/JsonRpcDecoder.java | |
@@ -22,11 +22,11 @@ import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
-import com.fasterxml.jackson.core.JsonEncoding; | |
+//import com.fasterxml.jackson.core.JsonEncoding; | |
import com.fasterxml.jackson.core.JsonFactory; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.core.io.IOContext; | |
-import com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper; | |
+//import com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper; | |
import com.fasterxml.jackson.core.util.BufferRecycler; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.MappingJsonFactory; | |
@@ -68,7 +68,7 @@ public class JsonRpcDecoder extends ByteToMessageDecoder { | |
logger.trace("readable bytes {}, records read {}, incomplete record bytes {}", | |
buf.readableBytes(), recordsRead, lastRecordBytes); | |
- | |
+/* | |
if (lastRecordBytes == 0) { | |
if (buf.readableBytes() < 4) { | |
return; //wait for more data | |
@@ -84,7 +84,7 @@ public class JsonRpcDecoder extends ByteToMessageDecoder { | |
throw new InvalidEncodingException(jsonEncoding.getJavaName(), "currently only UTF-8 is supported"); | |
} | |
} | |
- | |
+*/ | |
int i = lastRecordBytes + buf.readerIndex(); | |
for (; i < buf.writerIndex(); i++) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment