From 50d72892e98753fd012aff00c2d42979dce9653e Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 18 Jun 2020 13:49:01 +0100 Subject: Changes for checkstyle 8.32 Issue-ID: POLICY-2188 Change-Id: I00843c61a6567001fc35c3ebb77b6843a1eb7da2 Signed-off-by: liamfallon --- .../java/org/onap/policy/common/logging/OnapLoggingUtils.java | 2 +- .../java/org/onap/policy/common/logging/eelf/MessageCodes.java | 2 +- .../java/org/onap/policy/common/logging/eelf/PolicyLogger.java | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'common-logging') diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java b/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java index 9bfbe68d..369e77a4 100644 --- a/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java +++ b/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java @@ -67,7 +67,7 @@ public class OnapLoggingUtils { * @param arguments output arguments * @return */ - public static String formatMessage(String format, Object ...arguments) { + public static String formatMessage(String format, Object...arguments) { if (arguments.length <= 0 || arguments[0] == null) { return format; } diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java index ab5712ff..9116051b 100644 --- a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java +++ b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java @@ -149,7 +149,7 @@ public enum MessageCodes implements EELFResolvableErrorEnum { MESSAGE_ERROR_SAMPLE; - /** + /* * Static initializer to ensure the resource bundles for this class are loaded... Here this * application loads messages from three bundles. */ diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java index c582ea85..870e63aa 100644 --- a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java +++ b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java @@ -486,7 +486,7 @@ public class PolicyLogger { return; } if (arguments.length == 1 && OnapLoggingUtils.isThrowable(arguments[0])) { - String arguments2 = getNormalizedStackTrace((Throwable)arguments[0], ""); + String arguments2 = getNormalizedStackTrace((Throwable) arguments[0], ""); debugLogger.info(MessageCodes.GENERAL_INFO, message + arguments2); return; } @@ -571,7 +571,7 @@ public class PolicyLogger { return; } if (arguments.length == 1 && OnapLoggingUtils.isThrowable(arguments[0])) { - String arguments2 = getNormalizedStackTrace((Throwable)arguments[0], ""); + String arguments2 = getNormalizedStackTrace((Throwable) arguments[0], ""); debugLogger.warn(MessageCodes.GENERAL_INFO, message + arguments2); return; } @@ -661,7 +661,7 @@ public class PolicyLogger { return; } if (arguments.length == 1 && OnapLoggingUtils.isThrowable(arguments[0])) { - String arguments2 = getNormalizedStackTrace((Throwable)arguments[0], ""); + String arguments2 = getNormalizedStackTrace((Throwable) arguments[0], ""); errorLogger.error(MessageCodes.GENERAL_ERROR, message + arguments2); return; } @@ -747,7 +747,7 @@ public class PolicyLogger { return; } if (arguments.length == 1 && OnapLoggingUtils.isThrowable(arguments[0])) { - String arguments2 = getNormalizedStackTrace((Throwable)arguments[0], ""); + String arguments2 = getNormalizedStackTrace((Throwable) arguments[0], ""); debugLogger.debug(MessageCodes.GENERAL_INFO, message + arguments2); return; } @@ -1200,7 +1200,7 @@ public class PolicyLogger { return; } if (arguments.length == 1 && OnapLoggingUtils.isThrowable(arguments[0])) { - String arguments2 = getNormalizedStackTrace((Throwable)arguments[0], ""); + String arguments2 = getNormalizedStackTrace((Throwable) arguments[0], ""); metricsLogger.info(MessageCodes.RULE_METRICS_INFO, message + arguments2); return; } -- cgit 1.2.3-korg