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 2023/11/27 13:37:31 UTC

(commons-imaging) 03/11: Make org.apache.commons.imaging.formats.pcx.PcxWriter.bitDepthWanted final

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 54178ac2b8edc306bf2322aa966b0fa5e479a7ba
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Nov 27 08:15:53 2023 -0500

    Make org.apache.commons.imaging.formats.pcx.PcxWriter.bitDepthWanted
    final
---
 src/main/java/org/apache/commons/imaging/formats/pcx/PcxWriter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 c817ab00..d597950f 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
@@ -28,7 +28,7 @@ import org.apache.commons.imaging.palette.SimplePalette;
 
 final class PcxWriter {
     private final int encoding;
-    private int bitDepthWanted = -1;
+    private final int bitDepthWanted;
     private int planesWanted = -1;
     private final PixelDensity pixelDensity;
     private final RleWriter rleWriter;