From 7dafc94e50081abbcde4602cf84863fdfbf9c269 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Thu, 9 Aug 2007 03:40:15 +0000 Subject: [PATCH] Fix Java test cases Summary: Use the default TBinaryProtocol constructors for better example. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665197 13f79535-47bb-0310-9956-ffa450edef68 --- test/java/src/TestClient.java | 2 +- test/java/src/TestServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/java/src/TestClient.java b/test/java/src/TestClient.java index 8b1cc104..778bb160 100644 --- a/test/java/src/TestClient.java +++ b/test/java/src/TestClient.java @@ -71,7 +71,7 @@ public class TestClient { } TBinaryProtocol binaryProtocol = - new TBinaryProtocol(transport, false, false); + new TBinaryProtocol(transport); ThriftTest.Client testClient = new ThriftTest.Client(binaryProtocol); diff --git a/test/java/src/TestServer.java b/test/java/src/TestServer.java index a4c4a376..0d01be92 100644 --- a/test/java/src/TestServer.java +++ b/test/java/src/TestServer.java @@ -253,7 +253,7 @@ public class TestServer { // Protocol factory TProtocolFactory tProtocolFactory = - new TBinaryProtocol.Factory(true, true); + new TBinaryProtocol.Factory(); TServer serverEngine; -- 2.17.1