Fix sonar issues in Aggregate 79/109179/1
authorRodrigo Lima <rodrigo.lima@yoppworks.com>
Mon, 15 Jun 2020 21:21:00 +0000 (17:21 -0400)
committerRodrigo Lima <rodrigo.lima@yoppworks.com>
Mon, 15 Jun 2020 21:21:00 +0000 (17:21 -0400)
commit017c95fc8016787d17d060b586c3f5bd52582a04
tree6dbd372dbc8c51a4c14aa6e03234d9eede67bfa3
parenta81695efd81cc14d53ad94c5539101c641feb539
Fix sonar issues in Aggregate

- check obj.isPresent() in method processInput
- return Optional.empty instead of null in method createPropertiesObject

Issue-ID: AAI-2934
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Iebe0184ce39f244dd56e6861617cbf4e5dafb06c
aai-core/src/main/java/org/onap/aai/serialization/queryformats/Aggregate.java