X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FGetFailed.java;h=01ec1c8a33aa3928f91fefd8615ec5e3232be9ac;hb=b171126719c983b590c51f22eb60a3e0afdf1fb9;hp=c01bf2bd8080c154bbaac160889ffd013866f675;hpb=508624458578f01a393f8b44f32b98b40054fdc8;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/GetFailed.java b/src/main/java/net/pterodactylus/fcp/GetFailed.java index c01bf2b..01ec1c8 100644 --- a/src/main/java/net/pterodactylus/fcp/GetFailed.java +++ b/src/main/java/net/pterodactylus/fcp/GetFailed.java @@ -30,7 +30,7 @@ import java.util.Map.Entry; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class GetFailed extends BaseMessage { +public class GetFailed extends BaseMessage implements Identifiable { /** * Creates a new “GetFailed” message that wraps the received message. @@ -45,8 +45,8 @@ public class GetFailed extends BaseMessage { /** * Returns the code of the error. * - * @return The code of the error, or -1 if the error code could - * not be parsed + * @return The code of the error, or -1 if the error code + * could not be parsed */ public int getCode() { return FcpUtils.safeParseInt(getField("Code")); @@ -57,6 +57,7 @@ public class GetFailed extends BaseMessage { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } @@ -118,10 +119,11 @@ public class GetFailed extends BaseMessage { } /** - * Returns whether the expected values (see {@link #getExpectedDataLength()} - * and {@link #getExpectedMetadataContentType()}) have already been - * finalized and can be trusted. If the values have not been finalized that - * can change over time. + * Returns whether the expected values (see + * {@link #getExpectedDataLength()} and + * {@link #getExpectedMetadataContentType()}) have already been finalized + * and can be trusted. If the values have not been finalized that can + * change over time. * * @return true if the expected values have already been * finalized, false otherwise @@ -142,8 +144,8 @@ public class GetFailed extends BaseMessage { } /** - * Returns whether the request failed fatally. If a request fails fatally it - * can never complete, even with inifinite retries. + * Returns whether the request failed fatally. If a request fails fatally + * it can never complete, even with inifinite retries. * * @return true if the request failed fatally, * false otherwise