Make fields final (from code inspect.)

This commit is contained in:
Manfred Karrer 2016-01-21 13:11:34 +01:00
parent 8aee8b617d
commit 1dfc7357ca
20 changed files with 33 additions and 33 deletions

View file

@ -36,7 +36,7 @@ import java.util.concurrent.CountDownLatch;
public class P2PServiceTest {
private static final Logger log = LoggerFactory.getLogger(P2PServiceTest.class);
boolean useLocalhost = true;
final boolean useLocalhost = true;
private Set<NodeAddress> seedNodes;
private int sleepTime;
private KeyRing keyRing1, keyRing2, keyRing3;

View file

@ -7,8 +7,8 @@ import io.bitsquare.p2p.storage.data.ExpirablePayload;
public final class MockMailboxMessage implements MailboxMessage, ExpirablePayload {
private final int networkId = Version.getNetworkId();
public String msg;
public NodeAddress senderNodeAddress;
public final String msg;
public final NodeAddress senderNodeAddress;
public long ttl;
public MockMailboxMessage(String msg, NodeAddress senderNodeAddress) {

View file

@ -5,7 +5,7 @@ import io.bitsquare.p2p.Message;
import io.bitsquare.p2p.storage.data.ExpirablePayload;
public final class MockMessage implements Message, ExpirablePayload {
public String msg;
public final String msg;
public long ttl;
private final int networkId = Version.getNetworkId();

View file

@ -23,7 +23,7 @@ import java.util.concurrent.CountDownLatch;
public class PeerManagerTest {
private static final Logger log = LoggerFactory.getLogger(PeerManagerTest.class);
boolean useLocalhost = true;
final boolean useLocalhost = true;
private CountDownLatch latch;
private Set<NodeAddress> seedNodes;
private int sleepTime;

View file

@ -34,8 +34,8 @@ import java.util.concurrent.Executors;
public class ProtectedDataStorageTest {
private static final Logger log = LoggerFactory.getLogger(ProtectedDataStorageTest.class);
boolean useClearNet = true;
private Set<NodeAddress> seedNodes = new HashSet<>();
final boolean useClearNet = true;
private final Set<NodeAddress> seedNodes = new HashSet<>();
private NetworkNode networkNode1;
private PeerManager peerManager1;
private EncryptionService encryptionService1, encryptionService2;
@ -43,7 +43,7 @@ public class ProtectedDataStorageTest {
private KeyPair storageSignatureKeyPair1, storageSignatureKeyPair2;
private KeyRing keyRing1, keyRing2;
private MockData mockData;
private int sleepTime = 100;
private final int sleepTime = 100;
private File dir1;
private File dir2;