X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPutFailed.java;h=a98e02b133411c8a34d49facd1e70f7ba1977133;hb=e0d4c56493b97a16514ca865cad0ae42a2d8a5a2;hp=6eedc0509685e075f1a294860eefbc0db42a2c63;hpb=f553531be78d6d6d95dc152728f2b8d40242b57d;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/PutFailed.java b/src/net/pterodactylus/fcp/PutFailed.java index 6eedc05..a98e02b 100644 --- a/src/net/pterodactylus/fcp/PutFailed.java +++ b/src/net/pterodactylus/fcp/PutFailed.java @@ -1,6 +1,5 @@ /* - * jSite2 - GetFailed.java - - * Copyright © 2008 David Roden + * jFCPlib - GetFailed.java - Copyright © 2008 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,7 +29,6 @@ import java.util.Map.Entry; * request will be sent. * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ public class PutFailed extends BaseMessage { @@ -47,8 +45,8 @@ public class PutFailed 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")); @@ -130,7 +128,7 @@ public class PutFailed extends BaseMessage { public int[] getComplexErrorCodes() { Map allFields = getFields(); List errorCodeList = new ArrayList(); - for (Entry field: allFields.entrySet()) { + for (Entry field : allFields.entrySet()) { String fieldKey = field.getKey(); if (fieldKey.startsWith("Errors.")) { int nextDot = fieldKey.indexOf('.', 7); @@ -144,7 +142,7 @@ public class PutFailed extends BaseMessage { } int[] errorCodes = new int[errorCodeList.size()]; int errorIndex = 0; - for (int errorCode: errorCodeList) { + for (int errorCode : errorCodeList) { errorCodes[errorIndex++] = errorCode; } return errorCodes;