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
commit 56ad7180c211c3cb3bfc53dbffb5e7f816762db5 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun Apr 27 10:09:12 2025 -0400 Add @SuppressWarnings --- src/main/java/org/apache/commons/imaging/formats/pcx/PcxWriter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/apache/commons/imaging/formats/pcx/PcxWriter.java b/src/main/java/org/apache/commons/imaging/formats/pcx/PcxWriter.java index 58a02d21..22a4804c 100644 --- a/src/main/java/org/apache/commons/imaging/formats/pcx/PcxWriter.java +++ b/src/main/java/org/apache/commons/imaging/formats/pcx/PcxWriter.java @@ -52,6 +52,7 @@ final class PcxWriter { public void writeImage(final BufferedImage src, final OutputStream os) throws IOException { final PaletteFactory paletteFactory = new PaletteFactory(); final SimplePalette palette = paletteFactory.makeExactRgbPaletteSimple(src, 256); + @SuppressWarnings("resource") // Caller closes 'os'. final AbstractBinaryOutputStream bos = AbstractBinaryOutputStream.littleEndian(os); final int bitDepth; final int planes;