Add @Override annotations that are missing for JDK-1.6 compatibility.
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / FcpConnection.java
index e2bf72a..2688d21 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,
@@ -196,6 +196,7 @@ public class FcpConnection implements Closeable {
         * Closes the connection. If there is no connection to the node, this method
         * does nothing.
         */
+       @Override
        public void close() {
                handleDisconnect(null);
        }