-- Protocol and transport factories now wrap around a single protocol/transport
Summary:
- This is an analagous to the C++ change made in r31441
Reviewed By: slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664978 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/src/protocol/TProtocol.java b/lib/java/src/protocol/TProtocol.java
index 43b4f07..502f473 100644
--- a/lib/java/src/protocol/TProtocol.java
+++ b/lib/java/src/protocol/TProtocol.java
@@ -16,35 +16,22 @@
private TProtocol() {}
/**
- * Input transport
+ * Transport
*/
- protected TTransport inputTransport_;
-
- /**
- * Output transport
- */
- protected TTransport outputTransport_;
+ protected TTransport trans_;
/**
* Constructor
*/
- protected TProtocol(TTransport in, TTransport out) {
- inputTransport_ = in;
- outputTransport_ = out;
+ protected TProtocol(TTransport trans) {
+ trans_ = trans;
}
/**
- * Input accessor
+ * Transport accessor
*/
- public TTransport getInputTransport() {
- return inputTransport_;
- }
-
- /**
- * Output accessor
- */
- public TTransport getOutputTransport() {
- return outputTransport_;
+ public TTransport getTransport() {
+ return trans_;
}
/**