Skip to content

Commit

Permalink
Use field instead of local variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk authored and bgrozev committed Nov 16, 2017
1 parent 9810024 commit f2cd389
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/ice4j/ice/harvest/AbstractUdpListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
{
Expand All @@ -249,7 +249,7 @@ public void run()
};

thread.setName(AbstractUdpListener.class.getName() + " thread for "
+ localAddress);
+ this.localAddress);
thread.setDaemon(true);
thread.start();
}
Expand Down

0 comments on commit f2cd389

Please sign in to comment.