Skip to content

Fix eclipse compile issues #29056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void testCloseArray() throws IOException {
}

public void testCloseIterable() throws IOException {
runTestClose(Arrays::asList, IOUtils::close);
runTestClose((Function<Closeable[], List<Closeable>>) Arrays::asList, IOUtils::close);
}

private <T> void runTestClose(final Function<Closeable[], T> function, final CheckedConsumer<T, IOException> close) throws IOException {
Expand All @@ -74,7 +74,7 @@ public void testCloseArrayWithIOExceptions() throws IOException {
}

public void testCloseIterableWithIOExceptions() throws IOException {
runTestCloseWithIOExceptions(Arrays::asList, IOUtils::close);
runTestCloseWithIOExceptions((Function<Closeable[], List<Closeable>>) Arrays::asList, IOUtils::close);
}

private <T> void runTestCloseWithIOExceptions(
Expand Down Expand Up @@ -113,7 +113,7 @@ public void testDeleteFilesIgnoringExceptionsArray() throws IOException {
}

public void testDeleteFilesIgnoringExceptionsIterable() throws IOException {
runDeleteFilesIgnoringExceptionsTest(Arrays::asList, IOUtils::deleteFilesIgnoringExceptions);
runDeleteFilesIgnoringExceptionsTest((Function<Path[], List<Path>>) Arrays::asList, IOUtils::deleteFilesIgnoringExceptions);
}

private <T> void runDeleteFilesIgnoringExceptionsTest(
Expand Down