From 859f956efc6d45942e13e590b4d66340beedf0ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 24 Mar 2009 16:20:57 +0100 Subject: [PATCH] Formatting fixes. --- src/net/pterodactylus/fcp/GetFailed.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; -- 2.7.4