Cleanup (process proxy port is an implementation detail)

This commit is contained in:
Roman Shevchenko
2016-10-28 16:32:08 +02:00
parent b9eade6eb1
commit 5ac1d358b6
2 changed files with 2 additions and 5 deletions
@@ -47,14 +47,13 @@ class ProcessProxyImpl implements ProcessProxy {
private Writer myWriter;
private int myPid;
public ProcessProxyImpl() throws IOException {
ProcessProxyImpl() throws IOException {
mySocket = new ServerSocket();
mySocket.bind(new InetSocketAddress("127.0.0.1", 0));
mySocket.setSoTimeout(10000);
}
@Override
public int getPortNumber() {
int getPortNumber() {
return mySocket.getLocalPort();
}