Xiangdong Huang created THRIFT-5412: ---------------------------------------
Summary: TSocket and TEndpointTransport should not throw TTransportException Key: THRIFT-5412 URL: https://issues.apache.org/jira/browse/THRIFT-5412 Project: Thrift Issue Type: Improvement Components: Java - Library Affects Versions: 0.14.1 Reporter: Xiangdong Huang In Thrift 0.14.1, a new TSocket constructor is provided, ``` public TSocket(TConfiguration config, String host, int port, int socketTimeout, int connectTimeout) throws TTransportException ``` The method will throw an exception TTransportException. The exception is inherented from `TEndpointTransport.resetConsumedMessageSize()`. However, as the constructor calls `TEndpointTransport.resetConsumedMessageSize(-1)`, which will never throw such an exception, I think we can remove the exception declaration in TSocket's constructor. -- This message was sent by Atlassian Jira (v8.3.4#803005)