Count statistics over all connections created in the current VM.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 28 Nov 2009 18:39:12 +0000 (19:39 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 28 Nov 2009 18:39:12 +0000 (19:39 +0100)
src/main/java/net/pterodactylus/fcp/FcpConnection.java

index e2bf72a..484e7c3 100644 (file)
@@ -68,7 +68,7 @@ public class FcpConnection implements Closeable {
        private FcpConnectionHandler connectionHandler;
 
        /** Incoming message statistics. */
-       private Map<String, Integer> incomingMessageStatistics = Collections.synchronizedMap(new HashMap<String, Integer>());
+       private static final Map<String, Integer> incomingMessageStatistics = Collections.synchronizedMap(new HashMap<String, Integer>());
 
        /**
         * Creates a new FCP connection to the freenet node running on localhost,