Sonar:Major 35/30635/1
authorTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Wed, 7 Feb 2018 08:59:47 +0000 (14:29 +0530)
committerTECHMAHINDRA\BS00493532 <BS00493532@techmahindra.com>
Wed, 7 Feb 2018 09:00:12 +0000 (14:30 +0530)
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>
src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java

index 65c9d4f..df1207a 100644 (file)
@@ -333,7 +333,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService {
 
         // 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