diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2019-12-06 21:47:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-06 21:47:40 +0000 |
commit | 2986d9e70e3f23effcba1e1be0533bd84a9d1baa (patch) | |
tree | 357d533e55d00b32fb5993d0fae02024c3e0f4d0 /common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java | |
parent | e20940fdf3b8dc3016c3ca1c137285c8c6904052 (diff) | |
parent | 3073f50c525e47b0f0c4343330a9456faabeae78 (diff) |
Merge "Minor changes for new Eclipse checkstyle checks"
Diffstat (limited to 'common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java')
-rw-r--r-- | common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java | 7 |
1 files changed, 4 insertions, 3 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 dddd3c4d..6c0879ea 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 @@ -24,7 +24,9 @@ import javax.servlet.http.HttpServletRequest; public class OnapLoggingUtils { - private OnapLoggingUtils() {} + private OnapLoggingUtils() { + // Private constructor to prevent subclassing + } /** * Get the ONAPLoggingContext for a request. @@ -34,7 +36,7 @@ public class OnapLoggingUtils { * @return the ONAPLoggingContext */ public static OnapLoggingContext getLoggingContextForRequest(HttpServletRequest request, - OnapLoggingContext baseContext) { + OnapLoggingContext baseContext) { OnapLoggingContext requestContext = new OnapLoggingContext(baseContext); if (request.getLocalAddr() != null) { // may be null in junit tests requestContext.setServerIpAddress(request.getLocalAddr()); @@ -58,5 +60,4 @@ public class OnapLoggingUtils { return requestContext; } - } |