This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit adf6acaaf0806f22553a9d42f581ed068e58485a Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Mar 28 08:30:34 2021 -0400 Lambdas. --- .../org/apache/commons/vfs2/provider/DefaultFileContentTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/DefaultFileContentTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/DefaultFileContentTest.java index c483981..44a3c99 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/DefaultFileContentTest.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/DefaultFileContentTest.java @@ -84,7 +84,7 @@ public class DefaultFileContentTest { @Test public void testInputStreamClosedInADifferentThread() throws Exception { - testStreamClosedInADifferentThread(content -> content.getInputStream()); + testStreamClosedInADifferentThread(FileContent::getInputStream); } @Test @@ -177,7 +177,7 @@ public class DefaultFileContentTest { @Test public void testOutputStreamClosedInADifferentThread() throws Exception { - testStreamClosedInADifferentThread(content -> content.getOutputStream()); + testStreamClosedInADifferentThread(FileContent::getOutputStream); } private <T extends Closeable> void testStreamClosedInADifferentThread(final FailableFunction<FileContent, T, IOException> getStream) throws Exception { @@ -190,7 +190,7 @@ public class DefaultFileContentTest { final Thread thread = new Thread(() -> { try { stream.close(); - } catch (IOException exception) { + } catch (final IOException exception) { // ignore } check.set(true);