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 2021/01/17 21:44:53 UTC

[commons-imaging] 02/02: Make private elements final where possible.

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 7867c258bf8a48546816353c8ac7518b19835658
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 17 16:44:47 2021 -0500

    Make private elements final where possible.
---
 src/main/java/org/apache/commons/imaging/ImageInfo.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/imaging/ImageInfo.java b/src/main/java/org/apache/commons/imaging/ImageInfo.java
index e2ad886..b3915bc 100644
--- a/src/main/java/org/apache/commons/imaging/ImageInfo.java
+++ b/src/main/java/org/apache/commons/imaging/ImageInfo.java
@@ -39,7 +39,7 @@ public class ImageInfo {
         OTHER("Other"),
         UNKNOWN("Unknown");
 
-        private String description;
+        private final String description;
 
         ColorType(final String description) {
             this.description = description;
@@ -65,7 +65,7 @@ public class ImageInfo {
         CCITT_GROUP_4("CCITT Group 4"),
         CCITT_1D("CCITT 1D");
 
-        private String description;
+        private final String description;
 
         CompressionAlgorithm(final String description) {
             this.description = description;