diff options
Diffstat (limited to 'src/main/java/org/openslx/imagemaster/thrift/server/TBinaryProtocolSafe.java')
-rw-r--r-- | src/main/java/org/openslx/imagemaster/thrift/server/TBinaryProtocolSafe.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/openslx/imagemaster/thrift/server/TBinaryProtocolSafe.java b/src/main/java/org/openslx/imagemaster/thrift/server/TBinaryProtocolSafe.java index f30ba00..08654d6 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/server/TBinaryProtocolSafe.java +++ b/src/main/java/org/openslx/imagemaster/thrift/server/TBinaryProtocolSafe.java @@ -18,13 +18,13 @@ import org.apache.thrift.transport.TTransport; */ public class TBinaryProtocolSafe extends TBinaryProtocol { - /** * Factory */ @SuppressWarnings( "serial" ) public static class Factory implements TProtocolFactory { + protected boolean strictRead_ = false; protected boolean strictWrite_ = true; @@ -76,7 +76,7 @@ public class TBinaryProtocolSafe extends TBinaryProtocol if ( version != VERSION_1 ) { throw new TProtocolException( TProtocolException.BAD_VERSION, "Bad version in readMessageBegin" ); } - return new TMessage( readString(), (byte)( size & 0x000000ff ), readI32() ); + return new TMessage( readString(), (byte) ( size & 0x000000ff ), readI32() ); } else { if ( strictRead_ ) { throw new TProtocolException( TProtocolException.BAD_VERSION, "Missing version in readMessageBegin, old client?" ); @@ -114,7 +114,7 @@ public class TBinaryProtocolSafe extends TBinaryProtocol return bb; } - byte[] buf = new byte[size]; + byte[] buf = new byte[ size ]; trans_.readAll( buf, 0, size ); return ByteBuffer.wrap( buf ); } |