From 90469123b3bbecb1dca76ab8720f362580962d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Wed, 14 Mar 2018 13:44:12 +0100 Subject: [PATCH] Fix eclipse compile issues (#29056) Eclipse Oxygen doesn't seem to be able to infer the correct type arguments for Arrays::asList in the given test context. Adding cast to make this more explicit. --- .../org/elasticsearch/core/internal/io/IOUtilsTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/elasticsearch-core/src/test/java/org/elasticsearch/core/internal/io/IOUtilsTests.java b/libs/elasticsearch-core/src/test/java/org/elasticsearch/core/internal/io/IOUtilsTests.java index c133a9ddc1f..ee5af323b52 100644 --- a/libs/elasticsearch-core/src/test/java/org/elasticsearch/core/internal/io/IOUtilsTests.java +++ b/libs/elasticsearch-core/src/test/java/org/elasticsearch/core/internal/io/IOUtilsTests.java @@ -53,7 +53,7 @@ public class IOUtilsTests extends ESTestCase { } public void testCloseIterable() throws IOException { - runTestClose(Arrays::asList, IOUtils::close); + runTestClose((Function>) Arrays::asList, IOUtils::close); } private void runTestClose(final Function function, final CheckedConsumer close) throws IOException { @@ -74,7 +74,7 @@ public class IOUtilsTests extends ESTestCase { } public void testCloseIterableWithIOExceptions() throws IOException { - runTestCloseWithIOExceptions(Arrays::asList, IOUtils::close); + runTestCloseWithIOExceptions((Function>) Arrays::asList, IOUtils::close); } private void runTestCloseWithIOExceptions( @@ -113,7 +113,7 @@ public class IOUtilsTests extends ESTestCase { } public void testDeleteFilesIgnoringExceptionsIterable() throws IOException { - runDeleteFilesIgnoringExceptionsTest(Arrays::asList, IOUtils::deleteFilesIgnoringExceptions); + runDeleteFilesIgnoringExceptionsTest((Function>) Arrays::asList, IOUtils::deleteFilesIgnoringExceptions); } private void runDeleteFilesIgnoringExceptionsTest(