Replace type specification with diamond operator
DcaeServicesApiServiceImpl.java:L336
Sonar link : https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=MAJOR|assignees=BharathS24
Location : src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
Change-Id: Iacbc9f6fefe15850beea5611915b936ba73ec57d
Issue-ID: DCAEGEN2-316
Signed-off-by: TECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
// 2) Insert/update DCAEServiceComponentObjects. Components exist independent of the associated DCAE service.
- Map<String, DCAEServiceComponentObject> componentObjectsToSendBack = new HashMap<String, DCAEServiceComponentObject>();
+ Map<String, DCAEServiceComponentObject> componentObjectsToSendBack = new HashMap<>();
for (DCAEServiceComponentRequest requestComponent : request.getComponents()) {
// Have to query the database rather than checking the result of getting by service id because of the