X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FPersistentGet.java;h=7fc70a9f530e24de14b0e5026d6fcdff1147858c;hb=05e52ccf3f6e8f2645031cfd3b35f3f71d3a2b82;hp=76a57fe9814eb7500f8c778e76bc11b12e9c8a63;hpb=97f432ee0c2189a2c540e365e37daa11d9a591b1;p=jFCPlib.git
diff --git a/src/main/java/net/pterodactylus/fcp/PersistentGet.java b/src/main/java/net/pterodactylus/fcp/PersistentGet.java
index 76a57fe..7fc70a9 100644
--- a/src/main/java/net/pterodactylus/fcp/PersistentGet.java
+++ b/src/main/java/net/pterodactylus/fcp/PersistentGet.java
@@ -20,7 +20,8 @@ package net.pterodactylus.fcp;
/**
* The âPersistentGetâ message is sent to the client to inform it about a
- * persistent download, either in the client-local queue or in the global queue.
+ * persistent download, either in the client-local queue or in the global
+ * queue.
*
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/
@@ -32,7 +33,7 @@ public class PersistentGet extends BaseMessage implements Identifiable {
* @param receivedMessage
* The received message
*/
- PersistentGet(FcpMessage receivedMessage) {
+ public PersistentGet(FcpMessage receivedMessage) {
super(receivedMessage);
}
@@ -41,6 +42,7 @@ public class PersistentGet extends BaseMessage implements Identifiable {
*
* @return The identifier of the request
*/
+ @Override
public String getIdentifier() {
return getField("Identifier");
}
@@ -117,8 +119,8 @@ public class PersistentGet extends BaseMessage implements Identifiable {
/**
* Returns the persistence of the request.
*
- * @return The persistence of the request, or {@link Persistence#unknown} if
- * the persistence could not be parsed
+ * @return The persistence of the request, or {@link Persistence#unknown}
+ * if the persistence could not be parsed
*/
public Persistence getPersistence() {
try {
@@ -142,9 +144,9 @@ public class PersistentGet extends BaseMessage implements Identifiable {
/**
* Returns the maximum number of retries for a failed block.
*
- * @return The maximum number of retries for a failed block, -1
- * for endless retries, -2
if the number could not be
- * parsed
+ * @return The maximum number of retries for a failed block,
+ * -1
for endless retries, -2
if the
+ * number could not be parsed
*/
public int getMaxRetries() {
return FcpUtils.safeParseInt(getField("MaxRetries"), -2);