[Git][java-team/xmlgraphics-commons][master] 2 commits: Removing catch statement for IOException which is not thrown anymore
Pierre Gruet (@pgt)
gitlab at salsa.debian.org
Thu May 1 22:37:24 BST 2025
Pierre Gruet pushed to branch master at Debian Java Maintainers / xmlgraphics-commons
Commits:
a258bbf0 by Pierre Gruet at 2025-05-01T22:36:59+02:00
Removing catch statement for IOException which is not thrown anymore
- - - - -
5b0e211d by Pierre Gruet at 2025-05-01T22:37:52+02:00
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/no-IOException-OpenJdk17.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,5 +1,14 @@
+xmlgraphics-commons (2.10-3) unstable; urgency=medium
+
+ * Team upload
+ * Removing catch statement for IOException which is not thrown anymore
+ (Closes: #1104356)
+
+ -- Pierre Gruet <pgt at debian.org> Thu, 01 May 2025 22:37:04 +0200
+
xmlgraphics-commons (2.10-2) unstable; urgency=medium
+ * Team upload
* Updating the path of the built javadoc (Closes: #1087794)
-- Pierre Gruet <pgt at debian.org> Sat, 23 Nov 2024 00:20:44 +0100
=====================================
debian/patches/no-IOException-OpenJdk17.patch
=====================================
@@ -0,0 +1,21 @@
+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 at 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;
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
0001-XMPSchemaAdapter.java-Use-UTC-timezone-when-SOURCE_D.patch
+no-IOException-OpenJdk17.patch
View it on GitLab: https://salsa.debian.org/java-team/xmlgraphics-commons/-/compare/f93da4825bf8ade9a9a68cfd75c70e521f920fc4...5b0e211dd10e3239a43a7b6738004d2012f657ac
--
View it on GitLab: https://salsa.debian.org/java-team/xmlgraphics-commons/-/compare/f93da4825bf8ade9a9a68cfd75c70e521f920fc4...5b0e211dd10e3239a43a7b6738004d2012f657ac
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20250501/fc2e0e73/attachment.htm>
More information about the pkg-java-commits
mailing list