Synchronized methods because they override synchronized methods.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 20 Nov 2009 08:38:23 +0000 (09:38 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 20 Nov 2009 08:38:23 +0000 (09:38 +0100)
src/main/java/net/pterodactylus/fcp/FcpConnection.java

index 84f7ce9..e2bf72a 100644 (file)
@@ -454,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. */
                }
 
@@ -476,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. */
                }