From: Mark Slee Date: Tue, 20 Nov 2007 04:58:16 +0000 (+0000) Subject: Make Java TBinaryProtocol default to strictWrite X-Git-Tag: 0.2.0~1115 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=a1d4cab45f1d061e6121a7ed6b826dc79beca02a;p=common%2Fthrift.git Make Java TBinaryProtocol default to strictWrite 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 --- diff --git a/lib/java/src/protocol/TBinaryProtocol.java b/lib/java/src/protocol/TBinaryProtocol.java index 02b41710..b74c03d9 100644 --- a/lib/java/src/protocol/TBinaryProtocol.java +++ b/lib/java/src/protocol/TBinaryProtocol.java @@ -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) {