diff options
author | Jim Hahn <jrh3@att.com> | 2019-02-13 16:16:45 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-02-14 22:05:57 +0000 |
commit | f10d38d4af0178d008c69ada7cd1a6abc6ec075a (patch) | |
tree | bc3923330a2dc4f9281157412038a09b5b68caba /utils/src/main/java/org/onap/policy/common/utils/slf4j/LoggerFactoryWrapper.java | |
parent | e4db2076fa2c7ce1763bfb0d70bd360bf57f6c99 (diff) |
Sonar fixes
Added test for Serializer to increase junit coverage.
Added tests for TestTimeMulti to increase junit coverage.
Sonar fixes for PropertyConfiguration:
- use equalsIgnoreCase
- use the exception
Updated license dates.
Some fixes for LoggerFactoryWrapper to address sonar issue - utility
classes should typically have a private constructor.
Change-Id: I8957e9673fe8371ecca7abbb7ece87b0d6f46c1a
Issue-ID: POLICY-1519
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'utils/src/main/java/org/onap/policy/common/utils/slf4j/LoggerFactoryWrapper.java')
-rw-r--r-- | utils/src/main/java/org/onap/policy/common/utils/slf4j/LoggerFactoryWrapper.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/utils/src/main/java/org/onap/policy/common/utils/slf4j/LoggerFactoryWrapper.java b/utils/src/main/java/org/onap/policy/common/utils/slf4j/LoggerFactoryWrapper.java index 8f32b3bb..6f800015 100644 --- a/utils/src/main/java/org/onap/policy/common/utils/slf4j/LoggerFactoryWrapper.java +++ b/utils/src/main/java/org/onap/policy/common/utils/slf4j/LoggerFactoryWrapper.java @@ -1,8 +1,9 @@ -/*- +/* * ============LICENSE_START======================================================= * ONAP Policy Engine - Common Modules * ================================================================================ * Copyright (C) 2019 Samsung Electronics. All rights reserved. + * Modifications Copyright (C) 2019 AT&T Intellectual Property. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,11 +25,18 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * Helper class to retrive particular types of loggers without storing the logger name everywhere in ths code. + * Helper class to retrieve particular types of loggers without storing the logger name everywhere in ths code. */ public class LoggerFactoryWrapper { /** + * Constructs the object. + */ + private LoggerFactoryWrapper() { + super(); + } + + /** * Get Network Logger. * * @return logger instance |