Skip to content

Commit

Permalink
Finalizing variables that aren't set elsewhere for safety.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Spitz committed Jul 11, 2012
1 parent 640381f commit a152ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/StatsdClient.java
Expand Up @@ -39,11 +39,11 @@
import org.apache.log4j.Logger;

public class StatsdClient {
private static Random RNG = new Random();
private static Logger log = Logger.getLogger(StatsdClient.class.getName());
private static final Random RNG = new Random();
private static final Logger log = Logger.getLogger(StatsdClient.class.getName());

private InetSocketAddress _address;
private DatagramChannel _channel;
private final InetSocketAddress _address;
private final DatagramChannel _channel;

public StatsdClient(String host, int port) throws UnknownHostException, IOException {
this(InetAddress.getByName(host), port);
Expand Down

0 comments on commit a152ed8

Please sign in to comment.