Permalink
Browse files

Use field instead of local variable.

  • Loading branch information...
guusdk authored and bgrozev committed Nov 16, 2017
1 parent 9810024 commit f2cd3891e1b3f30af620bcfdb29255a003c498c1
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/ice4j/ice/harvest/AbstractUdpListener.java
@@ -222,7 +222,7 @@ protected AbstractUdpListener(TransportAddress localAddress)
this.localAddress = localAddress;
}
socket = new DatagramSocket( localAddress );
socket = new DatagramSocket( this.localAddress );
int receiveBufferSize = StackProperties.getInt(SO_RCVBUF_PNAME, -1);
if (receiveBufferSize > 0)
@@ -231,7 +231,7 @@ protected AbstractUdpListener(TransportAddress localAddress)
}
String logMessage
= "Initialized AbstractUdpListener with address " + localAddress;
= "Initialized AbstractUdpListener with address " + this.localAddress;
logMessage += ". Receive buffer size " + socket.getReceiveBufferSize();
if (receiveBufferSize > 0)
{
@@ -249,7 +249,7 @@ public void run()
};
thread.setName(AbstractUdpListener.class.getName() + " thread for "
+ localAddress);
+ this.localAddress);
thread.setDaemon(true);
thread.start();
}

0 comments on commit f2cd389

Please sign in to comment.