Skip to content
Browse files

cleanup

  • Loading branch information...
1 parent 700e261 commit 8d08145664d25b2a218f0814c17dec7da6a74087 @jonasb jonasb committed Jan 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/se/forskningsavd/Communicator.java
View
6 src/se/forskningsavd/Communicator.java
@@ -10,7 +10,7 @@
import java.nio.ByteBuffer;
import java.util.ArrayList;
-public class Communicator {
+class Communicator {
static class ReceiverThread extends Thread {
private final DatagramSocket mSocket;
private boolean mRunning = true;
@@ -72,7 +72,7 @@ public void abort() {
private boolean mRunning = true;
private byte mTrustServer;
private byte mTrustClient;
- private ArrayList<byte[]> mTrustMessages = new ArrayList<byte[]>();
+ private final ArrayList<byte[]> mTrustMessages = new ArrayList<byte[]>();
private int mTrustTimeout;
public SenderThread(DatagramSocket socket) {
@@ -81,7 +81,7 @@ public SenderThread(DatagramSocket socket) {
@Override
public void run() {
- InetAddress hostAddress = null;
+ InetAddress hostAddress;
try {
hostAddress = InetAddress.getByName(Settings.HOST);
final String message = "HELO";

0 comments on commit 8d08145

Please sign in to comment.
Something went wrong with that request. Please try again.