From 5cf64105e5bd8f1e679dcfe189671e30ac2a653c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 7 Sep 2010 12:16:51 +0200 Subject: [PATCH] Add @Override annotations that are missing for JDK-1.6 compatibility. --- src/main/java/net/pterodactylus/fcp/AllData.java | 1 + src/main/java/net/pterodactylus/fcp/DataFound.java | 1 + .../java/net/pterodactylus/fcp/EndListPeers.java | 1 + .../java/net/pterodactylus/fcp/FCPPluginReply.java | 1 + .../java/net/pterodactylus/fcp/FcpAdapter.java | 39 ++++++++++++++++++++++ .../java/net/pterodactylus/fcp/FcpConnection.java | 1 + .../pterodactylus/fcp/FcpConnectionHandler.java | 1 + .../java/net/pterodactylus/fcp/FcpMessage.java | 1 + .../net/pterodactylus/fcp/FinishedCompression.java | 1 + src/main/java/net/pterodactylus/fcp/GetFailed.java | 1 + .../net/pterodactylus/fcp/IdentifierCollision.java | 1 + src/main/java/net/pterodactylus/fcp/Peer.java | 1 + .../java/net/pterodactylus/fcp/PersistentGet.java | 1 + .../java/net/pterodactylus/fcp/PersistentPut.java | 1 + .../net/pterodactylus/fcp/PersistentPutDir.java | 1 + .../fcp/PersistentRequestModified.java | 1 + .../fcp/PersistentRequestRemoved.java | 1 + .../java/net/pterodactylus/fcp/PluginInfo.java | 1 + src/main/java/net/pterodactylus/fcp/PutFailed.java | 1 + .../java/net/pterodactylus/fcp/PutFetchable.java | 1 + .../java/net/pterodactylus/fcp/PutSuccessful.java | 1 + .../java/net/pterodactylus/fcp/SSKKeypair.java | 1 + src/main/java/net/pterodactylus/fcp/SentFeed.java | 1 + .../java/net/pterodactylus/fcp/SimpleProgress.java | 1 + .../net/pterodactylus/fcp/StartedCompression.java | 1 + .../net/pterodactylus/fcp/SubscribedUSKUpdate.java | 1 + .../java/net/pterodactylus/fcp/URIGenerated.java | 1 + .../net/pterodactylus/fcp/highlevel/FcpClient.java | 2 ++ 28 files changed, 67 insertions(+) diff --git a/src/main/java/net/pterodactylus/fcp/AllData.java b/src/main/java/net/pterodactylus/fcp/AllData.java index b997ab4..dfc7dc2 100644 --- a/src/main/java/net/pterodactylus/fcp/AllData.java +++ b/src/main/java/net/pterodactylus/fcp/AllData.java @@ -54,6 +54,7 @@ public class AllData extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/DataFound.java b/src/main/java/net/pterodactylus/fcp/DataFound.java index 68ea166..5151efd 100644 --- a/src/main/java/net/pterodactylus/fcp/DataFound.java +++ b/src/main/java/net/pterodactylus/fcp/DataFound.java @@ -52,6 +52,7 @@ public class DataFound extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/EndListPeers.java b/src/main/java/net/pterodactylus/fcp/EndListPeers.java index a854fa4..bb98f23 100644 --- a/src/main/java/net/pterodactylus/fcp/EndListPeers.java +++ b/src/main/java/net/pterodactylus/fcp/EndListPeers.java @@ -40,6 +40,7 @@ public class EndListPeers extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java b/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java index 8ce892b..44e96ba 100644 --- a/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java +++ b/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java @@ -61,6 +61,7 @@ public class FCPPluginReply extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/FcpAdapter.java b/src/main/java/net/pterodactylus/fcp/FcpAdapter.java index a358d4c..063d363 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpAdapter.java +++ b/src/main/java/net/pterodactylus/fcp/FcpAdapter.java @@ -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. */ } diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnection.java b/src/main/java/net/pterodactylus/fcp/FcpConnection.java index 484e7c3..2688d21 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpConnection.java +++ b/src/main/java/net/pterodactylus/fcp/FcpConnection.java @@ -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); } diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java b/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java index fcceec7..263860a 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java +++ b/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java @@ -66,6 +66,7 @@ class FcpConnectionHandler implements Runnable { /** * {@inheritDoc} */ + @Override public void run() { FcpMessage fcpMessage = null; Throwable throwable = null; diff --git a/src/main/java/net/pterodactylus/fcp/FcpMessage.java b/src/main/java/net/pterodactylus/fcp/FcpMessage.java index b238db3..9b5d926 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpMessage.java +++ b/src/main/java/net/pterodactylus/fcp/FcpMessage.java @@ -134,6 +134,7 @@ public class FcpMessage implements Iterable { /** * {@inheritDoc} */ + @Override public Iterator iterator() { return fields.keySet().iterator(); } diff --git a/src/main/java/net/pterodactylus/fcp/FinishedCompression.java b/src/main/java/net/pterodactylus/fcp/FinishedCompression.java index de9de9f..91c0341 100644 --- a/src/main/java/net/pterodactylus/fcp/FinishedCompression.java +++ b/src/main/java/net/pterodactylus/fcp/FinishedCompression.java @@ -42,6 +42,7 @@ public class FinishedCompression extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/GetFailed.java b/src/main/java/net/pterodactylus/fcp/GetFailed.java index f24bfcd..837aa6b 100644 --- a/src/main/java/net/pterodactylus/fcp/GetFailed.java +++ b/src/main/java/net/pterodactylus/fcp/GetFailed.java @@ -57,6 +57,7 @@ public class GetFailed extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java b/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java index 9cf4fd1..5ce6f4a 100644 --- a/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java +++ b/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java @@ -42,6 +42,7 @@ public class IdentifierCollision extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/Peer.java b/src/main/java/net/pterodactylus/fcp/Peer.java index f942393..fff70cb 100644 --- a/src/main/java/net/pterodactylus/fcp/Peer.java +++ b/src/main/java/net/pterodactylus/fcp/Peer.java @@ -66,6 +66,7 @@ public class Peer extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentGet.java b/src/main/java/net/pterodactylus/fcp/PersistentGet.java index 76a57fe..73a043a 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentGet.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentGet.java @@ -41,6 +41,7 @@ public class PersistentGet extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentPut.java b/src/main/java/net/pterodactylus/fcp/PersistentPut.java index 5119f11..2dc8213 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentPut.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentPut.java @@ -70,6 +70,7 @@ public class PersistentPut extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java b/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java index e6bb26e..6d59d6d 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java @@ -42,6 +42,7 @@ public class PersistentPutDir extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java b/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java index 2973639..78f73bc 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java @@ -42,6 +42,7 @@ public class PersistentRequestModified extends BaseMessage implements Identifiab * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java b/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java index 5783470..becf346 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java @@ -42,6 +42,7 @@ public class PersistentRequestRemoved extends BaseMessage implements Identifiabl * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PluginInfo.java b/src/main/java/net/pterodactylus/fcp/PluginInfo.java index 46b5439..fbce581 100644 --- a/src/main/java/net/pterodactylus/fcp/PluginInfo.java +++ b/src/main/java/net/pterodactylus/fcp/PluginInfo.java @@ -49,6 +49,7 @@ public class PluginInfo extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PutFailed.java b/src/main/java/net/pterodactylus/fcp/PutFailed.java index 2211dfc..375d924 100644 --- a/src/main/java/net/pterodactylus/fcp/PutFailed.java +++ b/src/main/java/net/pterodactylus/fcp/PutFailed.java @@ -57,6 +57,7 @@ public class PutFailed extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PutFetchable.java b/src/main/java/net/pterodactylus/fcp/PutFetchable.java index 4632566..767b4ad 100644 --- a/src/main/java/net/pterodactylus/fcp/PutFetchable.java +++ b/src/main/java/net/pterodactylus/fcp/PutFetchable.java @@ -42,6 +42,7 @@ public class PutFetchable extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/PutSuccessful.java b/src/main/java/net/pterodactylus/fcp/PutSuccessful.java index 7ce46da..d8c4434 100644 --- a/src/main/java/net/pterodactylus/fcp/PutSuccessful.java +++ b/src/main/java/net/pterodactylus/fcp/PutSuccessful.java @@ -41,6 +41,7 @@ public class PutSuccessful extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/SSKKeypair.java b/src/main/java/net/pterodactylus/fcp/SSKKeypair.java index b0d4dc7..55b27e9 100644 --- a/src/main/java/net/pterodactylus/fcp/SSKKeypair.java +++ b/src/main/java/net/pterodactylus/fcp/SSKKeypair.java @@ -41,6 +41,7 @@ public class SSKKeypair extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/SentFeed.java b/src/main/java/net/pterodactylus/fcp/SentFeed.java index 2169b21..133bd12 100644 --- a/src/main/java/net/pterodactylus/fcp/SentFeed.java +++ b/src/main/java/net/pterodactylus/fcp/SentFeed.java @@ -42,6 +42,7 @@ public class SentFeed extends BaseMessage implements Identifiable { * * @return The send feed’s identifier */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/SimpleProgress.java b/src/main/java/net/pterodactylus/fcp/SimpleProgress.java index f934057..5f4da24 100644 --- a/src/main/java/net/pterodactylus/fcp/SimpleProgress.java +++ b/src/main/java/net/pterodactylus/fcp/SimpleProgress.java @@ -104,6 +104,7 @@ public class SimpleProgress extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/StartedCompression.java b/src/main/java/net/pterodactylus/fcp/StartedCompression.java index 34e1fdd..1fd44f1 100644 --- a/src/main/java/net/pterodactylus/fcp/StartedCompression.java +++ b/src/main/java/net/pterodactylus/fcp/StartedCompression.java @@ -42,6 +42,7 @@ public class StartedCompression extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java b/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java index fd72dd7..7d25c2d 100644 --- a/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java +++ b/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java @@ -45,6 +45,7 @@ public class SubscribedUSKUpdate extends BaseMessage implements Identifiable { * * @return The identifier of the subscription */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/URIGenerated.java b/src/main/java/net/pterodactylus/fcp/URIGenerated.java index 6b36f64..663148f 100644 --- a/src/main/java/net/pterodactylus/fcp/URIGenerated.java +++ b/src/main/java/net/pterodactylus/fcp/URIGenerated.java @@ -42,6 +42,7 @@ public class URIGenerated extends BaseMessage implements Identifiable { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } diff --git a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java index dee33c3..740b30a 100644 --- a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -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; } -- 2.7.4