From: David ‘Bombe’ Roden Date: Tue, 24 Mar 2009 15:20:57 +0000 (+0100) Subject: Formatting fixes. X-Git-Tag: v0.1.1~69 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=859f956efc6d45942e13e590b4d66340beedf0ce;p=jFCPlib.git Formatting fixes. --- diff --git a/src/net/pterodactylus/fcp/GetFailed.java b/src/net/pterodactylus/fcp/GetFailed.java index 095c82e..e624644 100644 --- a/src/net/pterodactylus/fcp/GetFailed.java +++ b/src/net/pterodactylus/fcp/GetFailed.java @@ -45,9 +45,9 @@ 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")); @@ -101,9 +101,9 @@ public class GetFailed extends BaseMessage { /** * Returns the expected data length, if already knows. - * - * @return The expected data length, or -1 if the length - * could not be parsed + * + * @return The expected data length, or -1 if the length could + * not be parsed */ public long getExpectedDataLength() { return FcpUtils.safeParseLong(getField("ExpectedDataLength")); @@ -163,7 +163,7 @@ public class GetFailed 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); @@ -177,7 +177,7 @@ public class GetFailed extends BaseMessage { } int[] errorCodes = new int[errorCodeList.size()]; int errorIndex = 0; - for (int errorCode: errorCodeList) { + for (int errorCode : errorCodeList) { errorCodes[errorIndex++] = errorCode; } return errorCodes;