Use setXxx() methods for @Property fields 25/55025/2
authorJim Hahn <jrh3@att.com>
Mon, 18 Jun 2018 19:53:30 +0000 (15:53 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 18 Jun 2018 20:19:58 +0000 (16:19 -0400)
commitcd5750e1c75294febce97c9567829abdbc3c7030
tree98b51f3eb2993dcae95578c4e800e966dc81ef60
parent5c04cdde760ff9f92235f29f8892977853bce864
Use setXxx() methods for @Property fields

Fortify generates a security exception when PropertyConfiguration
attempts to directly update private fields.  PropertyConfiguration
has been modified to invoke setXxx() methods, instead, to set the
values for the fields.
Add junit tests for new methods.

Change-Id: Ic4420b6348724c5a384d3c2c8bf7b4c0c6350fa9
Issue-ID: POLICY-906
Signed-off-by: Jim Hahn <jrh3@att.com>
utils/pom.xml
utils/src/main/java/org/onap/policy/common/utils/properties/PropertyConfiguration.java
utils/src/test/java/org/onap/policy/common/utils/properties/PropertyConfigurationTest.java
utils/src/test/java/org/onap/policy/common/utils/properties/SpecPropertyConfigurationTest.java