From: Chris André Date: Tue, 26 May 2020 00:24:26 +0000 (-0400) Subject: Java 11 migration: fixing problem on 'openecomp-tosca-converter-core' X-Git-Tag: 1.7.0~109 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F108213%2F2;p=sdc.git Java 11 migration: fixing problem on 'openecomp-tosca-converter-core' - Explicitely indicate the type associated with 'Collection' Issue-ID: SDC-3030 Signed-off-by: Chris Andre Change-Id: I557eb205598c337b75b06a2c7d705276aeb543a1 --- diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java index a343e1aec0..1eb09a8b44 100644 --- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java @@ -74,7 +74,7 @@ public class PnfTransformationEngineParameterizedTest { @Parameterized.Parameters(name = "{index}: input: {0}, descriptor: {4}, output: {2}") - public static Collection input() throws IOException, URISyntaxException { + public static Collection input() throws IOException, URISyntaxException { return Files.list(getPathFromClasspath(TEST_CASES_PATH)).map(path -> { try { return buildTestCase(path); @@ -84,7 +84,7 @@ public class PnfTransformationEngineParameterizedTest { }).filter(Objects::nonNull).flatMap(Collection::stream).collect(Collectors.toList()); } - private static Collection buildTestCase(final Path testCasePath) throws IOException { + private static Collection buildTestCase(final Path testCasePath) throws IOException { final Path inputFilePath = Files.list(testCasePath) .filter(path -> path.toFile().getName().endsWith("yaml")) .findAny().orElse(null);