mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-202: java: Fix "make check"
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@719407 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
466b3fafcd
commit
c26da0a391
@ -35,8 +35,6 @@ public class TestClient {
|
||||
String url = null;
|
||||
int numTests = 1;
|
||||
boolean framed = false;
|
||||
boolean framedInput = true;
|
||||
boolean framedOutput = true;
|
||||
|
||||
int socketTimeout = 1000;
|
||||
|
||||
@ -48,9 +46,6 @@ public class TestClient {
|
||||
port = Integer.valueOf(hostport[1]);
|
||||
} else if (args[i].equals("-f") || args[i].equals("-framed")) {
|
||||
framed = true;
|
||||
} else if (args[i].equals("-fo")) {
|
||||
framed = true;
|
||||
framedInput = false;
|
||||
} else if (args[i].equals("-u")) {
|
||||
url = args[++i];
|
||||
} else if (args[i].equals("-n")) {
|
||||
@ -72,9 +67,7 @@ public class TestClient {
|
||||
socket.setTimeout(socketTimeout);
|
||||
transport = socket;
|
||||
if (framed) {
|
||||
transport = new TFramedTransport(transport,
|
||||
framedInput,
|
||||
framedOutput);
|
||||
transport = new TFramedTransport(transport);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user