Fix sonar issue in distributed locking 54/111854/1
authorJim Hahn <jrh3@att.com>
Fri, 28 Aug 2020 21:01:46 +0000 (17:01 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 28 Aug 2020 21:04:29 +0000 (17:04 -0400)
commit22fda392c020fb6381afcc645554fd01636661ed
tree851d7989a6420a231f021c4eb7c9a28600c9a862
parent3fb61743113683b2be271429263a96fb0a7dd90a
Fix sonar issue in distributed locking

Fixed sonar issue:
- Refactor the code of the lambda to have only one invocation throwing
  an exception

Issue-ID: POLICY-2616
Change-Id: I8d96b95d0da9a780daacec7a4de17167642b03c1
Signed-off-by: Jim Hahn <jrh3@att.com>
feature-distributed-locking/src/test/java/org/onap/policy/distributed/locking/DistributedLockManagerTest.java