aboutsummaryrefslogtreecommitdiffstats
path: root/oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
diff options
context:
space:
mode:
authorsurya-huawei <a.u.surya@huawei.com>2017-09-19 11:40:07 +0530
committersurya-huawei <a.u.surya@huawei.com>2017-09-19 11:57:35 +0530
commit1bd57845776d0f5ffad0425718685019e1ec79c1 (patch)
treef07841becb648a629a9b8b8bf82f24aad22774ef /oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
parentf7129016e4371a587d9ff01d43f83aec206184a2 (diff)
Fix Sonar Issues
few major issues in dashboard module In CustomLogginFilter.java *move string literal to left side of equalsIgnoreCase method In DashboardRestricedBaseController.java *Use "Boolean.parseBoolean" for this string-to-boolean conversion In ECDSingleSignOnController.java *Replace the type specification in this constructor call with the diamond operator *Add the "@Override" annotation above this method signature *Remove unnecessary type casting Issue-Id: CCSDK-87 Change-Id: I2d588c29c4c57394f7b4a8ffcb20567cbb515919 Signed-off-by: surya-huawei <a.u.surya@huawei.com>
Diffstat (limited to 'oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java')
-rw-r--r--oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java b/oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
index 5ae372f..1f08b88 100644
--- a/oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
+++ b/oom-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
@@ -44,7 +44,7 @@ public class CustomLoggingFilter extends Filter<ILoggingEvent> {
public FilterReply decide(ILoggingEvent event) {
try {
if ((event.getLevel() != Level.ERROR || event.getLevel() != Level.WARN)
- && (event.getThreadName().equalsIgnoreCase("UEBConsumerThread"))
+ && ("UEBConsumerThread".equalsIgnoreCase(event.getThreadName()))
&& (event.getLoggerName().contains("com.att.nsa")
|| event.getLoggerName().contains("org.apache.http"))) {
return FilterReply.DENY;