X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FGetFailed.java;h=10c22b59e29d3bba13f6d157f2ea21b52636451d;hb=05e52ccf3f6e8f2645031cfd3b35f3f71d3a2b82;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..10c22b5 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. @@ -38,15 +38,15 @@ public class GetFailed extends BaseMessage { * @param receivedMessage * The received message */ - GetFailed(FcpMessage receivedMessage) { + public GetFailed(FcpMessage receivedMessage) { super(receivedMessage); } /** * 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