From 1ad102dc465b2d2e344500cb9666b307eae0d3ef Mon Sep 17 00:00:00 2001 From: "r.bogacki" Date: Tue, 9 Jul 2019 14:10:53 +0200 Subject: Major Sonar fixes Major Sonar fixes in different classes: -Removed unnecessary code. -Removed unused variables. -Removed unnecessary imports. -Simplified diamond operators. Issue-ID: SO-2102 Signed-off-by: Robert Bogacki Change-Id: I098e3dcd93b804e58220bb41ea15325e820e3a59 --- .../org/onap/so/asdc/client/test/emulators/ArtifactInfoImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'asdc-controller/src') diff --git a/asdc-controller/src/main/java/org/onap/so/asdc/client/test/emulators/ArtifactInfoImpl.java b/asdc-controller/src/main/java/org/onap/so/asdc/client/test/emulators/ArtifactInfoImpl.java index f4cfb1361f..93e4aee3d7 100644 --- a/asdc-controller/src/main/java/org/onap/so/asdc/client/test/emulators/ArtifactInfoImpl.java +++ b/asdc-controller/src/main/java/org/onap/so/asdc/client/test/emulators/ArtifactInfoImpl.java @@ -4,6 +4,8 @@ * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ + * Modifications Copyright (c) 2019 Samsung + * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -59,7 +61,7 @@ public class ArtifactInfoImpl implements IArtifactInfo { } public static List convertToArtifactInfoImpl(List list) { - List ret = new ArrayList(); + List ret = new ArrayList<>(); if (list != null) { for (IArtifactInfo artifactInfo : list) { ret.add(new ArtifactInfoImpl(artifactInfo)); @@ -159,7 +161,7 @@ public class ArtifactInfoImpl implements IArtifactInfo { @Override public List getRelatedArtifacts() { - List temp = new ArrayList(); + List temp = new ArrayList<>(); if (relatedArtifactsInfo != null) { temp.addAll(relatedArtifactsImpl); } -- cgit 1.2.3-korg