commit | 221c7774685f8073d176cef6c9d88623d445c183 | [log] [tgz] |
---|---|---|
author | Steven Blimkie <Steven.Blimkie@amdocs.com> | Wed Jan 17 14:29:25 2018 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Wed Jan 17 14:29:25 2018 +0000 |
tree | e80b4c49a6487fd135fcd2f5fe0e099949e01b02 | |
parent | fcbec755cfdcbcbc1df89d2bb36acca837b0984d [diff] | |
parent | 5f97698ea3c09130d5d4a62308365b4653066491 [diff] |
Merge "Sonar Major:Annotate the IModelParser interface."
diff --git a/src/main/java/org/onap/aai/modelloader/entity/model/AbstractModelArtifact.java b/src/main/java/org/onap/aai/modelloader/entity/model/AbstractModelArtifact.java index a942cf6..4571345 100644 --- a/src/main/java/org/onap/aai/modelloader/entity/model/AbstractModelArtifact.java +++ b/src/main/java/org/onap/aai/modelloader/entity/model/AbstractModelArtifact.java
@@ -36,7 +36,7 @@ private String modelNamespace; private String modelNamespaceVersion; - private Set<String> referencedModelIds = new HashSet<String>(); + private Set<String> referencedModelIds = new HashSet<>(); public AbstractModelArtifact(ArtifactType type) { super(type);
diff --git a/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java b/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java index 47d93e7..3a5b543 100644 --- a/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java +++ b/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java
@@ -57,7 +57,7 @@ // Push the ordered list of model artifacts to A&AI. If one fails, we need to roll back // the changes. - List<AbstractModelArtifact> completedModels = new ArrayList<AbstractModelArtifact>(); + List<AbstractModelArtifact> completedModels = new ArrayList<>(); AaiRestClient aaiClient = new AaiRestClient(config); for (Artifact art : sortedModelArtifacts) {