Fix FindBugs warnings in blueprint and enable enforcement 91/51191/1
authorTom Pantelis <tpanteli@brocade.com>
Wed, 26 Oct 2016 16:58:05 +0000 (12:58 -0400)
committerRobert Varga <rovarga@cisco.com>
Mon, 30 Jan 2017 16:04:31 +0000 (17:04 +0100)
commit4f323d3074caeecd415e915930b81b21af59c263
tree575db5182208b6ab0dc9ca8661fcd8fbb5853602
parent08a95495724e3c3c9907b3de23f3f961039c407e
Fix FindBugs warnings in blueprint and enable enforcement

Warnings fixed:
- OpendaylightNamespaceHandler(line 83): "Usage of GetResource may be unsafe
  if class is extended". Made the class final so it can't be extended.

- BlueprintContainerRestartServiceImpl(line 140): "return value of this method
  should be checked". Log warning if 'await' returns false.

Change-Id: I1473acabd0a4126f5e5d2745292fcbff9a308462
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
(cherry picked from commit ab1fee874f408a740df16f55190610e1013446ac)
opendaylight/blueprint/pom.xml
opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/BlueprintContainerRestartServiceImpl.java
opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/ext/OpendaylightNamespaceHandler.java