Some minor refinements in CCSDK SLI Core module
authorramu.n <ramu.n@huawei.com>
Sat, 23 Sep 2017 16:58:03 +0000 (22:28 +0530)
committerramu.n <ramu.n@huawei.com>
Sat, 23 Sep 2017 17:07:03 +0000 (22:37 +0530)
commit025e0ac819afe9ab5e05c7c75420814ff881ad03
tree04240920c7d498463b4d46de59d479619c7f2f9e
parentbac4dbe402cc81409d210a2dabd25847a12b6a36
Some minor refinements in CCSDK SLI Core module

Fix few Critical/Major sonar issues in CCSDK SLI Core module
* Define and throw a dedicated exception instead of using a generic one
* Either log or rethrow the exception
* Change "try" to a try-with-resources
* Remove useless assignment to local variable
* Use built-in logger method string formatting instead of string concatination
* code indentation

Change-Id: I83dc1fb931b8021118e259c722f7dfbc1621dce8
Issue-Id: CCSDK-67
Signed-off-by: Ramu N <ramu.n@huawei.com>
dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/CachedDataSource.java