You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2021/04/26 22:34:30 UTC

[commons-imaging] 01/02: [IMAGING-298] Apply suggestion of @arturobernalg to use lamnda expression

This is an automated email from the ASF dual-hosted git repository.

kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git

commit 430a088fd4b8d78f78dbab490b4b0629f8463f94
Author: Bruno P. Kinoshita <ki...@apache.org>
AuthorDate: Tue Apr 27 10:33:30 2021 +1200

    [IMAGING-298] Apply suggestion of @arturobernalg to use lamnda expression
---
 src/test/java/org/apache/commons/imaging/formats/png/PngReadTest.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/imaging/formats/png/PngReadTest.java b/src/test/java/org/apache/commons/imaging/formats/png/PngReadTest.java
index 4416dd7..fa7f69f 100644
--- a/src/test/java/org/apache/commons/imaging/formats/png/PngReadTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/png/PngReadTest.java
@@ -92,8 +92,6 @@ public class PngReadTest extends PngBaseTest {
         final String input = "/images/png/oss-fuzz-33691/clusterfuzz-testcase-minimized-ImagingPngFuzzer-6177282101215232";
         final String file = PngReadTest.class.getResource(input).getFile();
         final PngImageParser parser = new PngImageParser();
-        assertThrows(ImageReadException.class, () -> {
-            parser.getBufferedImage(new ByteSourceFile(new File(file)), Collections.emptyMap());
-        });
+        assertThrows(ImageReadException.class, () -> parser.getBufferedImage(new ByteSourceFile(new File(file)), Collections.emptyMap()));
     }
 }