summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Borelowski <p.borelowski@partner.samsung.com>2019-06-18 11:28:18 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-06-23 10:00:47 +0000
commite8a1f614867b6863c8f097a168e51a05847bf887 (patch)
tree2b87c27852a626597fd5ceb3888a5f9dc7104bb8
parenta5b875badca6bc73d18d609a91cdfddfb5a0f396 (diff)
Renamed the package name to 'enums'
Removing the sonar issues in the package org.onap.sdc.common.onaplog.enums Issue-ID: SDC-2327 Signed-off-by: Piotr Borelowski <p.borelowski@partner.samsung.com> Change-Id: I589751dbc8616bebf3a84d0f2bb4bb44d2a8893c
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/OnapLoggerAudit.java8
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/OnapLoggerDebug.java4
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/OnapLoggerError.java6
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/OnapLoggerMetric.java4
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/OnapMDCWrapper.java2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/enums/LogLevel.java (renamed from src/main/java/org/onap/sdc/common/onaplog/Enums/LogLevel.java)2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/enums/LogMarkers.java (renamed from src/main/java/org/onap/sdc/common/onaplog/Enums/LogMarkers.java)2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/enums/OnapLoggerErrorCode.java (renamed from src/main/java/org/onap/sdc/common/onaplog/Enums/OnapLoggerErrorCode.java)2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/enums/Severity.java (renamed from src/main/java/org/onap/sdc/common/onaplog/Enums/Severity.java)2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/enums/StatusCode.java (renamed from src/main/java/org/onap/sdc/common/onaplog/Enums/StatusCode.java)2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapLogger.java2
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapMdcWrapper.java2
-rw-r--r--src/main/java/org/onap/sdc/dcae/composition/util/SystemProperties.java3
-rw-r--r--src/test/java/org/onap/sdc/common/onaplog/OnapLoggerAuditTest.java6
-rw-r--r--src/test/java/org/onap/sdc/common/onaplog/OnapLoggerDebugTest.java2
-rw-r--r--src/test/java/org/onap/sdc/common/onaplog/OnapLoggerErrorTest.java4
-rw-r--r--src/test/java/org/onap/sdc/common/onaplog/OnapLoogerMetric.java4
18 files changed, 29 insertions, 30 deletions
diff --git a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerAudit.java b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerAudit.java
index fc89ad4..1057234 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerAudit.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerAudit.java
@@ -1,9 +1,9 @@
package org.onap.sdc.common.onaplog;
-import org.onap.sdc.common.onaplog.Enums.LogMarkers;
-import org.onap.sdc.common.onaplog.Enums.OnapLoggerErrorCode;
-import org.onap.sdc.common.onaplog.Enums.Severity;
-import org.onap.sdc.common.onaplog.Enums.StatusCode;
+import org.onap.sdc.common.onaplog.enums.LogMarkers;
+import org.onap.sdc.common.onaplog.enums.OnapLoggerErrorCode;
+import org.onap.sdc.common.onaplog.enums.Severity;
+import org.onap.sdc.common.onaplog.enums.StatusCode;
import org.onap.sdc.common.onaplog.interfaces.IOnapMdcWrapper;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
diff --git a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java
index c1e879e..973b44c 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java
@@ -20,7 +20,7 @@
package org.onap.sdc.common.onaplog;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
import org.onap.sdc.common.onaplog.interfaces.IOnapLogger;
import org.onap.sdc.common.onaplog.interfaces.IOnapMdcWrapper;
import org.slf4j.Logger;
diff --git a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerDebug.java b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerDebug.java
index 1897aca..23ede18 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerDebug.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerDebug.java
@@ -1,7 +1,7 @@
package org.onap.sdc.common.onaplog;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
-import org.onap.sdc.common.onaplog.Enums.LogMarkers;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.LogMarkers;
import org.onap.sdc.common.onaplog.interfaces.IOnapMdcWrapper;
import org.slf4j.LoggerFactory;
import org.slf4j.MarkerFactory;
diff --git a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerError.java b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerError.java
index 9734419..472b99b 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerError.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerError.java
@@ -1,8 +1,8 @@
package org.onap.sdc.common.onaplog;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
-import org.onap.sdc.common.onaplog.Enums.LogMarkers;
-import org.onap.sdc.common.onaplog.Enums.OnapLoggerErrorCode;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.LogMarkers;
+import org.onap.sdc.common.onaplog.enums.OnapLoggerErrorCode;
import org.onap.sdc.common.onaplog.interfaces.IOnapMdcWrapper;
import org.slf4j.LoggerFactory;
import org.slf4j.MarkerFactory;
diff --git a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerMetric.java b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerMetric.java
index 5b9dd08..95c0ef4 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerMetric.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerMetric.java
@@ -1,7 +1,7 @@
package org.onap.sdc.common.onaplog;
-import org.onap.sdc.common.onaplog.Enums.LogMarkers;
-import org.onap.sdc.common.onaplog.Enums.Severity;
+import org.onap.sdc.common.onaplog.enums.LogMarkers;
+import org.onap.sdc.common.onaplog.enums.Severity;
import org.onap.sdc.common.onaplog.interfaces.IOnapMdcWrapper;
import org.slf4j.LoggerFactory;
import org.slf4j.MarkerFactory;
diff --git a/src/main/java/org/onap/sdc/common/onaplog/OnapMDCWrapper.java b/src/main/java/org/onap/sdc/common/onaplog/OnapMDCWrapper.java
index 2249f14..9fbcabd 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/OnapMDCWrapper.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/OnapMDCWrapper.java
@@ -1,6 +1,6 @@
package org.onap.sdc.common.onaplog;
-import org.onap.sdc.common.onaplog.Enums.Severity;
+import org.onap.sdc.common.onaplog.enums.Severity;
import org.onap.sdc.common.onaplog.interfaces.IOnapMdcWrapper;
import org.onap.sdc.common.onaplog.interfaces.IStopWatch;
import org.slf4j.Logger;
diff --git a/src/main/java/org/onap/sdc/common/onaplog/Enums/LogLevel.java b/src/main/java/org/onap/sdc/common/onaplog/enums/LogLevel.java
index 3e6df9d..609b5a3 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/Enums/LogLevel.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/enums/LogLevel.java
@@ -1,4 +1,4 @@
-package org.onap.sdc.common.onaplog.Enums;
+package org.onap.sdc.common.onaplog.enums;
public enum LogLevel {
INFO,
diff --git a/src/main/java/org/onap/sdc/common/onaplog/Enums/LogMarkers.java b/src/main/java/org/onap/sdc/common/onaplog/enums/LogMarkers.java
index f9f2f84..032066a 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/Enums/LogMarkers.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/enums/LogMarkers.java
@@ -1,4 +1,4 @@
-package org.onap.sdc.common.onaplog.Enums;
+package org.onap.sdc.common.onaplog.enums;
public enum LogMarkers {
DEBUG_MARKER("DEBUG_MARKER"),
diff --git a/src/main/java/org/onap/sdc/common/onaplog/Enums/OnapLoggerErrorCode.java b/src/main/java/org/onap/sdc/common/onaplog/enums/OnapLoggerErrorCode.java
index b1984c4..219a929 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/Enums/OnapLoggerErrorCode.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/enums/OnapLoggerErrorCode.java
@@ -1,4 +1,4 @@
-package org.onap.sdc.common.onaplog.Enums;
+package org.onap.sdc.common.onaplog.enums;
public enum OnapLoggerErrorCode {
SUCCESS(0),
diff --git a/src/main/java/org/onap/sdc/common/onaplog/Enums/Severity.java b/src/main/java/org/onap/sdc/common/onaplog/enums/Severity.java
index 219cddc..580e263 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/Enums/Severity.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/enums/Severity.java
@@ -1,4 +1,4 @@
-package org.onap.sdc.common.onaplog.Enums;
+package org.onap.sdc.common.onaplog.enums;
public enum Severity {
OK(0),
diff --git a/src/main/java/org/onap/sdc/common/onaplog/Enums/StatusCode.java b/src/main/java/org/onap/sdc/common/onaplog/enums/StatusCode.java
index 05bbbb7..bc8f33a 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/Enums/StatusCode.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/enums/StatusCode.java
@@ -1,4 +1,4 @@
-package org.onap.sdc.common.onaplog.Enums;
+package org.onap.sdc.common.onaplog.enums;
public enum StatusCode {
ERROR("ERROR"),
diff --git a/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapLogger.java b/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapLogger.java
index 61e94a4..4891a73 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapLogger.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapLogger.java
@@ -1,6 +1,6 @@
package org.onap.sdc.common.onaplog.interfaces;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
/**
* Created by dd4296 on 12/24/2017.
diff --git a/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapMdcWrapper.java b/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapMdcWrapper.java
index ae94655..661761c 100644
--- a/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapMdcWrapper.java
+++ b/src/main/java/org/onap/sdc/common/onaplog/interfaces/IOnapMdcWrapper.java
@@ -1,7 +1,7 @@
package org.onap.sdc.common.onaplog.interfaces;
import org.onap.sdc.common.onaplog.OnapMDCWrapper;
-import org.onap.sdc.common.onaplog.Enums.Severity;
+import org.onap.sdc.common.onaplog.enums.Severity;
/**
* Created by dd4296 on 12/25/2017.
diff --git a/src/main/java/org/onap/sdc/dcae/composition/util/SystemProperties.java b/src/main/java/org/onap/sdc/dcae/composition/util/SystemProperties.java
index 585fe87..4014639 100644
--- a/src/main/java/org/onap/sdc/dcae/composition/util/SystemProperties.java
+++ b/src/main/java/org/onap/sdc/dcae/composition/util/SystemProperties.java
@@ -3,8 +3,7 @@ package org.onap.sdc.dcae.composition.util;
import java.util.Properties;
import org.onap.sdc.common.onaplog.OnapLoggerDebug;
-import org.onap.sdc.common.onaplog.OnapLoggerError;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
diff --git a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerAuditTest.java b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerAuditTest.java
index 8fe3b72..676ab4e 100644
--- a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerAuditTest.java
+++ b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerAuditTest.java
@@ -39,9 +39,9 @@ import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
-import org.onap.sdc.common.onaplog.Enums.OnapLoggerErrorCode;
-import org.onap.sdc.common.onaplog.Enums.Severity;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.OnapLoggerErrorCode;
+import org.onap.sdc.common.onaplog.enums.Severity;
import org.slf4j.MDC;
import uk.org.lidalia.slf4jtest.LoggingEvent;
diff --git a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerDebugTest.java b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerDebugTest.java
index 5e81739..8d1f3f8 100644
--- a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerDebugTest.java
+++ b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerDebugTest.java
@@ -28,7 +28,7 @@ import com.google.common.collect.ImmutableList;
import org.junit.Test;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
import org.slf4j.MDC;
import uk.org.lidalia.slf4jtest.LoggingEvent;
diff --git a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerErrorTest.java b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerErrorTest.java
index 3d61abd..5c8fbf6 100644
--- a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerErrorTest.java
+++ b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerErrorTest.java
@@ -29,8 +29,8 @@ import com.google.common.collect.ImmutableMap;
import org.junit.Test;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
-import org.onap.sdc.common.onaplog.Enums.OnapLoggerErrorCode;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.OnapLoggerErrorCode;
import org.slf4j.MDC;
import uk.org.lidalia.slf4jtest.LoggingEvent;
diff --git a/src/test/java/org/onap/sdc/common/onaplog/OnapLoogerMetric.java b/src/test/java/org/onap/sdc/common/onaplog/OnapLoogerMetric.java
index eb49780..fd4435b 100644
--- a/src/test/java/org/onap/sdc/common/onaplog/OnapLoogerMetric.java
+++ b/src/test/java/org/onap/sdc/common/onaplog/OnapLoogerMetric.java
@@ -33,8 +33,8 @@ import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
-import org.onap.sdc.common.onaplog.Enums.LogLevel;
-import org.onap.sdc.common.onaplog.Enums.Severity;
+import org.onap.sdc.common.onaplog.enums.LogLevel;
+import org.onap.sdc.common.onaplog.enums.Severity;
import org.slf4j.MDC;
import uk.org.lidalia.slf4jtest.LoggingEvent;