Synchronized methods because they override synchronized methods.
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / FcpConnection.java
index 2f40785..e2bf72a 100644 (file)
@@ -31,6 +31,8 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.logging.Logger;
 
+import net.pterodactylus.util.logging.Logging;
+
 /**
  * An FCP connection to a Freenet node.
  *
@@ -39,7 +41,7 @@ import java.util.logging.Logger;
 public class FcpConnection implements Closeable {
 
        /** Logger. */
-       private static final Logger logger = Logger.getLogger(FcpConnection.class.getName());
+       private static final Logger logger = Logging.getLogger(FcpConnection.class.getName());
 
        /** The default port for FCP v2. */
        public static final int DEFAULT_PORT = 9481;
@@ -452,7 +454,7 @@ public class FcpConnection implements Closeable {
                 * @see java.io.FilterInputStream#mark(int)
                 */
                @Override
-               public void mark(int readlimit) {
+               public synchronized void mark(int readlimit) {
                        /* do nothing. */
                }
 
@@ -474,7 +476,7 @@ public class FcpConnection implements Closeable {
                 * @see java.io.FilterInputStream#reset()
                 */
                @Override
-               public void reset() throws IOException {
+               public synchronized void reset() throws IOException {
                        /* do nothing. */
                }