From 7bbc4c6e757407f64c50015006534fda367e5216 Mon Sep 17 00:00:00 2001 From: Kevin Hellemun Date: Tue, 2 Jan 2018 10:02:54 +0100 Subject: [PATCH] Removed plural in method name. (bunq/sdk_java#55) --- src/main/java/com/bunq/sdk/exception/ExceptionFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/bunq/sdk/exception/ExceptionFactory.java b/src/main/java/com/bunq/sdk/exception/ExceptionFactory.java index 70317a7e..f9857b35 100644 --- a/src/main/java/com/bunq/sdk/exception/ExceptionFactory.java +++ b/src/main/java/com/bunq/sdk/exception/ExceptionFactory.java @@ -33,7 +33,7 @@ public class ExceptionFactory { * @return The exception that belongs to this status code. */ public static ApiException createExceptionForResponse(int responseCode, List messages, String responseId){ - String error_message = concatenateMessages(messages, responseId); + String error_message = concatenateAllMessage(messages, responseId); switch (responseCode) { case HTTP_RESPONSE_CODE_BAD_REQUEST: @@ -55,7 +55,7 @@ public static ApiException createExceptionForResponse(int responseCode, List messages, String responseId) { + private static String concatenateAllMessage(List messages, String responseId) { return String.format(FORMAT_ERROR_MESSAGE, responseId, String.join(SEPARATOR_ERROR_MESSAGES, messages)); }