Declare own identities map as final.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 15 Sep 2012 21:08:17 +0000 (23:08 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 15 Sep 2012 21:08:17 +0000 (23:08 +0200)
src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManager.java

index e6fa3be..6152c4b 100644 (file)
@@ -63,7 +63,7 @@ public class IdentityManager extends AbstractService {
 
        /** The currently known own identities. */
        /* synchronize access on syncObject. */
-       private Map<String, OwnIdentity> currentOwnIdentities = new HashMap<String, OwnIdentity>();
+       private final Map<String, OwnIdentity> currentOwnIdentities = new HashMap<String, OwnIdentity>();
 
        /**
         * Creates a new identity manager.