Add @Override annotations that are missing for JDK-1.6 compatibility.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 7 Sep 2010 10:16:51 +0000 (12:16 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 7 Sep 2010 10:16:51 +0000 (12:16 +0200)
28 files changed:
src/main/java/net/pterodactylus/fcp/AllData.java
src/main/java/net/pterodactylus/fcp/DataFound.java
src/main/java/net/pterodactylus/fcp/EndListPeers.java
src/main/java/net/pterodactylus/fcp/FCPPluginReply.java
src/main/java/net/pterodactylus/fcp/FcpAdapter.java
src/main/java/net/pterodactylus/fcp/FcpConnection.java
src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java
src/main/java/net/pterodactylus/fcp/FcpMessage.java
src/main/java/net/pterodactylus/fcp/FinishedCompression.java
src/main/java/net/pterodactylus/fcp/GetFailed.java
src/main/java/net/pterodactylus/fcp/IdentifierCollision.java
src/main/java/net/pterodactylus/fcp/Peer.java
src/main/java/net/pterodactylus/fcp/PersistentGet.java
src/main/java/net/pterodactylus/fcp/PersistentPut.java
src/main/java/net/pterodactylus/fcp/PersistentPutDir.java
src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java
src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java
src/main/java/net/pterodactylus/fcp/PluginInfo.java
src/main/java/net/pterodactylus/fcp/PutFailed.java
src/main/java/net/pterodactylus/fcp/PutFetchable.java
src/main/java/net/pterodactylus/fcp/PutSuccessful.java
src/main/java/net/pterodactylus/fcp/SSKKeypair.java
src/main/java/net/pterodactylus/fcp/SentFeed.java
src/main/java/net/pterodactylus/fcp/SimpleProgress.java
src/main/java/net/pterodactylus/fcp/StartedCompression.java
src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java
src/main/java/net/pterodactylus/fcp/URIGenerated.java
src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java

index b997ab4..dfc7dc2 100644 (file)
@@ -54,6 +54,7 @@ public class AllData extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 68ea166..5151efd 100644 (file)
@@ -52,6 +52,7 @@ public class DataFound extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index a854fa4..bb98f23 100644 (file)
@@ -40,6 +40,7 @@ public class EndListPeers extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 8ce892b..44e96ba 100644 (file)
@@ -61,6 +61,7 @@ public class FCPPluginReply extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index a358d4c..063d363 100644 (file)
@@ -28,6 +28,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) {
                /* empty. */
        }
@@ -35,6 +36,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedCloseConnectionDuplicateClientName(FcpConnection fcpConnection, CloseConnectionDuplicateClientName closeConnectionDuplicateClientName) {
                /* empty. */
        }
@@ -42,6 +44,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedSSKKeypair(FcpConnection fcpConnection, SSKKeypair sskKeypair) {
                /* empty. */
        }
@@ -49,6 +52,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPeer(FcpConnection fcpConnection, Peer peer) {
                /* empty. */
        }
@@ -56,6 +60,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedEndListPeers(FcpConnection fcpConnection, EndListPeers endListPeers) {
                /* empty. */
        }
@@ -63,6 +68,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote) {
                /* empty. */
        }
@@ -70,6 +76,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedEndListPeerNotes(FcpConnection fcpConnection, EndListPeerNotes endListPeerNotes) {
                /* empty. */
        }
@@ -77,6 +84,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved) {
                /* empty. */
        }
@@ -86,6 +94,7 @@ public class FcpAdapter implements FcpListener {
         *
         * @see FcpListener#receivedNodeData(FcpConnection, NodeData)
         */
+       @Override
        public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) {
                /* empty. */
        }
@@ -95,6 +104,7 @@ public class FcpAdapter implements FcpListener {
         *
         * @see FcpListener#receivedTestDDAReply(FcpConnection, TestDDAReply)
         */
+       @Override
        public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply) {
                /* empty. */
        }
@@ -102,6 +112,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedTestDDAComplete(FcpConnection fcpConnection, TestDDAComplete testDDAComplete) {
                /* empty. */
        }
@@ -109,6 +120,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPersistentGet(FcpConnection fcpConnection, PersistentGet persistentGet) {
                /* empty. */
        }
@@ -116,6 +128,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPersistentPut(FcpConnection fcpConnection, PersistentPut persistentPut) {
                /* empty. */
        }
@@ -123,6 +136,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedEndListPersistentRequests(FcpConnection fcpConnection, EndListPersistentRequests endListPersistentRequests) {
                /* empty. */
        }
@@ -130,6 +144,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedURIGenerated(FcpConnection fcpConnection, URIGenerated uriGenerated) {
                /* empty. */
        }
@@ -137,6 +152,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedDataFound(FcpConnection fcpConnection, DataFound dataFound) {
                /* empty. */
        }
@@ -144,6 +160,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedAllData(FcpConnection fcpConnection, AllData allData) {
                /* empty. */
        }
@@ -151,6 +168,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedSimpleProgress(FcpConnection fcpConnection, SimpleProgress simpleProgress) {
                /* empty. */
        }
@@ -158,6 +176,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedStartedCompression(FcpConnection fcpConnection, StartedCompression startedCompression) {
                /* empty. */
        }
@@ -165,6 +184,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression) {
                /* empty. */
        }
@@ -172,6 +192,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedUnknownPeerNoteType(FcpConnection fcpConnection, UnknownPeerNoteType unknownPeerNoteType) {
                /* empty. */
        }
@@ -179,6 +200,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedUnknownNodeIdentifier(FcpConnection fcpConnection, UnknownNodeIdentifier unknownNodeIdentifier) {
                /* empty. */
        }
@@ -186,6 +208,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedConfigData(FcpConnection fcpConnection, ConfigData configData) {
                /* empty. */
        }
@@ -193,6 +216,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedGetFailed(FcpConnection fcpConnection, GetFailed getFailed) {
                /* empty. */
        }
@@ -200,6 +224,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPutFailed(FcpConnection fcpConnection, PutFailed putFailed) {
                /* empty. */
        }
@@ -207,6 +232,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedIdentifierCollision(FcpConnection fcpConnection, IdentifierCollision identifierCollision) {
                /* empty. */
        }
@@ -214,6 +240,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPersistentPutDir(FcpConnection fcpConnection, PersistentPutDir persistentPutDir) {
                /* empty. */
        }
@@ -221,6 +248,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved) {
                /* empty. */
        }
@@ -228,6 +256,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedSubscribedUSKUpdate(FcpConnection fcpConnection, SubscribedUSKUpdate subscribedUSKUpdate) {
                /* empty. */
        }
@@ -235,6 +264,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo) {
                /* empty. */
        }
@@ -242,6 +272,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedFCPPluginReply(FcpConnection fcpConnection, FCPPluginReply fcpPluginReply) {
                /* empty. */
        }
@@ -249,6 +280,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPersistentRequestModified(FcpConnection fcpConnection, PersistentRequestModified persistentRequestModified) {
                /* empty. */
        }
@@ -256,6 +288,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPutSuccessful(FcpConnection fcpConnection, PutSuccessful putSuccessful) {
                /* empty. */
        }
@@ -263,6 +296,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable) {
                /* empty. */
        }
@@ -270,6 +304,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError) {
                /* empty. */
        }
@@ -277,6 +312,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedSentFeed(FcpConnection source, SentFeed sentFeed) {
                /* empty. */
        }
@@ -284,6 +320,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedBookmarkFeed(FcpConnection fcpConnection, ReceivedBookmarkFeed receivedBookmarkFeed) {
                /* empty. */
        }
@@ -291,6 +328,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage) {
                /* empty. */
        }
@@ -298,6 +336,7 @@ public class FcpAdapter implements FcpListener {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void connectionClosed(FcpConnection fcpConnection, Throwable throwable) {
                /* empty. */
        }
index 484e7c3..2688d21 100644 (file)
@@ -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);
        }
index fcceec7..263860a 100644 (file)
@@ -66,6 +66,7 @@ class FcpConnectionHandler implements Runnable {
        /**
         * {@inheritDoc}
         */
+       @Override
        public void run() {
                FcpMessage fcpMessage = null;
                Throwable throwable = null;
index b238db3..9b5d926 100644 (file)
@@ -134,6 +134,7 @@ public class FcpMessage implements Iterable<String> {
        /**
         * {@inheritDoc}
         */
+       @Override
        public Iterator<String> iterator() {
                return fields.keySet().iterator();
        }
index de9de9f..91c0341 100644 (file)
@@ -42,6 +42,7 @@ public class FinishedCompression extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index f24bfcd..837aa6b 100644 (file)
@@ -57,6 +57,7 @@ public class GetFailed extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 9cf4fd1..5ce6f4a 100644 (file)
@@ -42,6 +42,7 @@ public class IdentifierCollision extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index f942393..fff70cb 100644 (file)
@@ -66,6 +66,7 @@ public class Peer extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 76a57fe..73a043a 100644 (file)
@@ -41,6 +41,7 @@ public class PersistentGet extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 5119f11..2dc8213 100644 (file)
@@ -70,6 +70,7 @@ public class PersistentPut extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index e6bb26e..6d59d6d 100644 (file)
@@ -42,6 +42,7 @@ public class PersistentPutDir extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 2973639..78f73bc 100644 (file)
@@ -42,6 +42,7 @@ public class PersistentRequestModified extends BaseMessage implements Identifiab
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 5783470..becf346 100644 (file)
@@ -42,6 +42,7 @@ public class PersistentRequestRemoved extends BaseMessage implements Identifiabl
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 46b5439..fbce581 100644 (file)
@@ -49,6 +49,7 @@ public class PluginInfo extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 2211dfc..375d924 100644 (file)
@@ -57,6 +57,7 @@ public class PutFailed extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 4632566..767b4ad 100644 (file)
@@ -42,6 +42,7 @@ public class PutFetchable extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 7ce46da..d8c4434 100644 (file)
@@ -41,6 +41,7 @@ public class PutSuccessful extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index b0d4dc7..55b27e9 100644 (file)
@@ -41,6 +41,7 @@ public class SSKKeypair extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 2169b21..133bd12 100644 (file)
@@ -42,6 +42,7 @@ public class SentFeed extends BaseMessage implements Identifiable {
         *
         * @return The send feed’s identifier
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index f934057..5f4da24 100644 (file)
@@ -104,6 +104,7 @@ public class SimpleProgress extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 34e1fdd..1fd44f1 100644 (file)
@@ -42,6 +42,7 @@ public class StartedCompression extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index fd72dd7..7d25c2d 100644 (file)
@@ -45,6 +45,7 @@ public class SubscribedUSKUpdate extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the subscription
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index 6b36f64..663148f 100644 (file)
@@ -42,6 +42,7 @@ public class URIGenerated extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
index dee33c3..740b30a 100644 (file)
@@ -844,6 +844,7 @@ public class FcpClient {
                        /**
                         * {@inheritDoc}
                         */
+                       @Override
                        public boolean filterObject(Request request) {
                                return request instanceof GetRequest;
                        }
@@ -869,6 +870,7 @@ public class FcpClient {
                        /**
                         * {@inheritDoc}
                         */
+                       @Override
                        public boolean filterObject(Request request) {
                                return request instanceof PutRequest;
                        }