aboutsummaryrefslogtreecommitdiffstats
path: root/common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-12-05 15:23:17 +0000
committerGerrit Code Review <gerrit@onap.org>2017-12-05 15:23:17 +0000
commit9eade238b6079eb9afc8bc3de251f32aa7407ed6 (patch)
tree566a44dbe2461b30431223a62c74479e85448d35 /common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java
parent4cd4924f682afe455db9a6416b7513fb9eafbfe0 (diff)
parentda75a5e8cd3e64fb8e7efa8db18e1a488870d0dc (diff)
Merge "Fix sonar issues in ONAP-logging"
Diffstat (limited to 'common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java')
-rw-r--r--common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java b/common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java
index 78fffefe..b2ad76ca 100644
--- a/common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java
+++ b/common-logging/src/main/java/org/onap/policy/common/logging/nsa/LoggingContextFactory.java
@@ -32,6 +32,10 @@ public class LoggingContextFactory
{
public static class Builder
{
+
+ private LoggingContext fBase = null;
+ private boolean fShared = false;
+
public Builder withBaseContext ( LoggingContext lc )
{
fBase = lc;
@@ -48,8 +52,5 @@ public class LoggingContextFactory
{
return fShared ? new SharedContext ( fBase ) : new Slf4jLoggingContext ( fBase );
}
-
- private LoggingContext fBase = null;
- private boolean fShared = false;
}
}