Fix isPmDictionary nullsafety 02/128202/2
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Wed, 30 Mar 2022 11:55:15 +0000 (07:55 -0400)
committerMichael Morris <michael.morris@est.tech>
Thu, 31 Mar 2022 12:04:43 +0000 (12:04 +0000)
Issue-ID: SDC-3937
Change-Id: I24e7f6c64772b501b592e93c712cd8a9fbb78202
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/filedatastructuremodule/ManifestCreatorNamingConventionImpl.java

index f935318..48601a2 100644 (file)
@@ -97,7 +97,7 @@ public class ManifestCreatorNamingConventionImpl implements ManifestCreator {
     }
 
     private boolean isPmDictionary(String artifact, ManifestContent existingManifest) {
-        return existingManifest.getData().stream().filter(fileData -> fileData.getType().equals(FileData.Type.PM_DICTIONARY)).map(FileData::getFile)
+        return existingManifest.getData().stream().filter(fileData -> FileData.Type.PM_DICTIONARY.equals(fileData.getType())).map(FileData::getFile)
             .anyMatch(pmDictionaryFile -> pmDictionaryFile.equals(artifact));
     }