aboutsummaryrefslogtreecommitdiffstats
path: root/common-logging/src
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2020-06-18 13:49:01 +0100
committerliamfallon <liam.fallon@est.tech>2020-06-18 14:11:15 +0100
commit50d72892e98753fd012aff00c2d42979dce9653e (patch)
tree45c43f2a4d7a9bbdc2dda4dc0298dedee6afb1a6 /common-logging/src
parent611f63a4bb71d677cf2665b1794e91148ba42a51 (diff)
Changes for checkstyle 8.32
Issue-ID: POLICY-2188 Change-Id: I00843c61a6567001fc35c3ebb77b6843a1eb7da2 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'common-logging/src')
-rw-r--r--common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java2
-rw-r--r--common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java2
-rw-r--r--common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java10
3 files changed, 7 insertions, 7 deletions
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;
}