You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/21 20:06:29 UTC

[commons-imaging] branch master updated: Removed unused exceptions from method signatures in tests.

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-imaging.git


The following commit(s) were added to refs/heads/master by this push:
     new cd376285 Removed unused exceptions from method signatures in tests.
cd376285 is described below

commit cd376285df41f18eafb6f96dc00aaa00d695923c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat May 21 16:06:25 2022 -0400

    Removed unused exceptions from method signatures in tests.
---
 src/test/java/org/apache/commons/imaging/formats/bmp/BmpBaseTest.java | 3 +--
 src/test/java/org/apache/commons/imaging/formats/bmp/BmpReadTest.java | 2 +-
 src/test/java/org/apache/commons/imaging/formats/dcx/DcxBaseTest.java | 3 +--
 src/test/java/org/apache/commons/imaging/formats/gif/GifBaseTest.java | 3 +--
 .../java/org/apache/commons/imaging/formats/icns/IcnsBaseTest.java    | 3 +--
 .../java/org/apache/commons/imaging/formats/jpeg/JpegBaseTest.java    | 3 +--
 src/test/java/org/apache/commons/imaging/formats/pam/PamBaseTest.java | 3 +--
 src/test/java/org/apache/commons/imaging/formats/png/PngBaseTest.java | 3 +--
 src/test/java/org/apache/commons/imaging/formats/psd/PsdBaseTest.java | 3 +--
 .../java/org/apache/commons/imaging/formats/rgbe/RgbeBaseTest.java    | 4 ++--
 .../java/org/apache/commons/imaging/formats/tiff/TiffBaseTest.java    | 3 +--
 11 files changed, 12 insertions(+), 21 deletions(-)

diff --git a/src/test/java/org/apache/commons/imaging/formats/bmp/BmpBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/bmp/BmpBaseTest.java
index fcb28de6..35dbe7ca 100644
--- a/src/test/java/org/apache/commons/imaging/formats/bmp/BmpBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/bmp/BmpBaseTest.java
@@ -28,8 +28,7 @@ import org.apache.commons.imaging.ImagingTest;
 
 public abstract class BmpBaseTest extends ImagingTest {
 
-    private static boolean isBmp(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isBmp(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.BMP;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/bmp/BmpReadTest.java b/src/test/java/org/apache/commons/imaging/formats/bmp/BmpReadTest.java
index 6b30bd82..0d688b2b 100644
--- a/src/test/java/org/apache/commons/imaging/formats/bmp/BmpReadTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/bmp/BmpReadTest.java
@@ -79,7 +79,7 @@ public class BmpReadTest extends BmpBaseTest {
     }
 
     @Test
-    public void testNegativePaletteLength() throws ImageReadException, IOException {
+    public void testNegativePaletteLength() {
         final String input = "/images/bmp/IMAGING-325/crash-3afb569de74522535ef65922233e1920455cdc14.bmp";
         final String location = BmpReadTest.class.getResource(input).getFile();
         final File inputFile = new File(location);
diff --git a/src/test/java/org/apache/commons/imaging/formats/dcx/DcxBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/dcx/DcxBaseTest.java
index 545c9798..276faa6a 100644
--- a/src/test/java/org/apache/commons/imaging/formats/dcx/DcxBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/dcx/DcxBaseTest.java
@@ -29,8 +29,7 @@ import org.apache.commons.imaging.ImagingTest;
 
 public abstract class DcxBaseTest extends ImagingTest {
 
-    private static boolean isDcx(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isDcx(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.DCX;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/gif/GifBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/gif/GifBaseTest.java
index d11ee118..2bb3a3c7 100644
--- a/src/test/java/org/apache/commons/imaging/formats/gif/GifBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/gif/GifBaseTest.java
@@ -33,8 +33,7 @@ public abstract class GifBaseTest extends ImagingTest {
 
     private final static String SINGLE_IMAGE_FOLDER_NAME = "single";
 
-    private static boolean isGif(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isGif(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.GIF;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/icns/IcnsBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/icns/IcnsBaseTest.java
index 1453a1e7..5f0e63f4 100644
--- a/src/test/java/org/apache/commons/imaging/formats/icns/IcnsBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/icns/IcnsBaseTest.java
@@ -29,8 +29,7 @@ import org.apache.commons.imaging.ImagingTest;
 
 public abstract class IcnsBaseTest extends ImagingTest {
 
-    private static boolean isIcns(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isIcns(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.ICNS;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/jpeg/JpegBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/jpeg/JpegBaseTest.java
index 17977d4f..f971c9f0 100644
--- a/src/test/java/org/apache/commons/imaging/formats/jpeg/JpegBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/jpeg/JpegBaseTest.java
@@ -29,8 +29,7 @@ import org.apache.commons.imaging.ImagingTest;
 
 public abstract class JpegBaseTest extends ImagingTest {
 
-    protected static boolean isJpeg(final File file) throws IOException,
-            ImageReadException {
+    protected static boolean isJpeg(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.JPEG;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/pam/PamBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/pam/PamBaseTest.java
index 816a58e1..c266c8c7 100644
--- a/src/test/java/org/apache/commons/imaging/formats/pam/PamBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/pam/PamBaseTest.java
@@ -29,8 +29,7 @@ import org.apache.commons.imaging.ImagingTest;
 
 public abstract class PamBaseTest extends ImagingTest {
 
-    private static boolean isPam(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isPam(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.PAM;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/png/PngBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/png/PngBaseTest.java
index 07b84e1c..4de24323 100644
--- a/src/test/java/org/apache/commons/imaging/formats/png/PngBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/png/PngBaseTest.java
@@ -29,8 +29,7 @@ import org.apache.commons.imaging.ImagingTest;
 
 public abstract class PngBaseTest extends ImagingTest {
 
-    private static boolean isPng(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isPng(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.PNG;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/psd/PsdBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/psd/PsdBaseTest.java
index 4e623578..27f23a2b 100644
--- a/src/test/java/org/apache/commons/imaging/formats/psd/PsdBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/psd/PsdBaseTest.java
@@ -27,8 +27,7 @@ import org.apache.commons.imaging.Imaging;
 import org.apache.commons.imaging.ImagingTest;
 
 public abstract class PsdBaseTest extends ImagingTest {
-    private static boolean isPsd(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isPsd(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.PSD;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/rgbe/RgbeBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/rgbe/RgbeBaseTest.java
index 1335a8df..8d12fa76 100644
--- a/src/test/java/org/apache/commons/imaging/formats/rgbe/RgbeBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/rgbe/RgbeBaseTest.java
@@ -27,8 +27,8 @@ import org.apache.commons.imaging.Imaging;
 import org.apache.commons.imaging.ImagingTest;
 
 public abstract class RgbeBaseTest extends ImagingTest {
-    private static boolean isRgbe(final File file) throws IOException,
-            ImageReadException {
+
+    private static boolean isRgbe(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.RGBE;
     }
diff --git a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffBaseTest.java b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffBaseTest.java
index 080003d5..5e41deef 100644
--- a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffBaseTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffBaseTest.java
@@ -29,8 +29,7 @@ import org.apache.commons.imaging.ImagingTest;
 
 public abstract class TiffBaseTest extends ImagingTest {
 
-    private static boolean isTiff(final File file) throws IOException,
-            ImageReadException {
+    private static boolean isTiff(final File file) throws IOException {
         final ImageFormat format = Imaging.guessFormat(file);
         return format == ImageFormats.TIFF;
     }