Make Java TBinaryProtocol default to strictWrite
authorMark Slee <mcslee@apache.org>
Tue, 20 Nov 2007 04:58:16 +0000 (04:58 +0000)
committerMark Slee <mcslee@apache.org>
Tue, 20 Nov 2007 04:58:16 +0000 (04:58 +0000)
Summary: About time we did this. Breaks the test suite's defaults

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665357 13f79535-47bb-0310-9956-ffa450edef68

lib/java/src/protocol/TBinaryProtocol.java

index 02b4171..b74c03d 100644 (file)
@@ -31,7 +31,7 @@ public class TBinaryProtocol extends TProtocol {
     protected boolean strictWrite_ = true;
 
     public Factory() {
-      this(false, false);
+      this(false, true);
     }
 
     public Factory(boolean strictRead, boolean strictWrite) {
@@ -48,7 +48,7 @@ public class TBinaryProtocol extends TProtocol {
    * Constructor
    */
   public TBinaryProtocol(TTransport trans) {
-    this(trans, false, false);
+    this(trans, false, true);
   }
 
   public TBinaryProtocol(TTransport trans, boolean strictRead, boolean strictWrite) {