Description: no IOException is anymore thrown by write
 This can raise an error depending on the version of the JDK that is used.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2025-05-01

--- a/src/main/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawJPEG.java
+++ b/src/main/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawJPEG.java
@@ -226,11 +226,7 @@
             final int alignment = 4;
             int padding = (alignment - (iccStream.size() % alignment)) % alignment;
             if (padding != 0) {
-                try {
-                    iccStream.write(new byte[padding]);
-                } catch (IOException ioe) {
-                    throw new IOException("Error while aligning ICC stream: " + ioe.getMessage());
-                }
+                iccStream.write(new byte[padding]);
             }
 
             ICC_Profile iccProfile = null;
