aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2014-09-10 10:54:14 +0200
committerVlad Dumitrescu <[email protected]>2014-09-11 21:24:20 +0200
commit790728fc740af676d6fc6671355af0f5ffcfb530 (patch)
treeca96d39756cc325022a256ee0719fd6c24fb124d
parent98bdec3eb067d0feccd23cac61316d42bf1e915e (diff)
downloadotp-790728fc740af676d6fc6671355af0f5ffcfb530.tar.gz
otp-790728fc740af676d6fc6671355af0f5ffcfb530.tar.bz2
otp-790728fc740af676d6fc6671355af0f5ffcfb530.zip
rename OtpNode.Acceptor.port to acceptorPort
was colliding with OtpLocalNode.port
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java
index 69b9a7e0d9..c2596496de 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java
@@ -683,13 +683,13 @@ public class OtpNode extends OtpLocalNode {
*/
public class Acceptor extends Thread {
private final ServerSocket sock;
- private final int port;
+ private final int acceptorPort;
private volatile boolean done = false;
Acceptor(final int port) throws IOException {
sock = new ServerSocket(port);
- this.port = sock.getLocalPort();
- OtpNode.this.port = this.port;
+ this.acceptorPort = sock.getLocalPort();
+ OtpNode.this.port = this.acceptorPort;
setDaemon(true);
setName("acceptor");
@@ -740,7 +740,7 @@ public class OtpNode extends OtpLocalNode {
}
public int port() {
- return port;
+ return acceptorPort;
}
@Override