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


The following commit(s) were added to refs/heads/master by this push:
     new e81cc4e6 Reuse Objects.toString()
     new 183900ae Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/commons-imaging
e81cc4e6 is described below

commit e81cc4e64c5acf2511a2743090ab84aa2e4f5542
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Sep 20 09:47:39 2023 -0400

    Reuse Objects.toString()
---
 src/main/java/org/apache/commons/imaging/internal/Debug.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/imaging/internal/Debug.java 
b/src/main/java/org/apache/commons/imaging/internal/Debug.java
index 6d13ba0f..34a4940c 100644
--- a/src/main/java/org/apache/commons/imaging/internal/Debug.java
+++ b/src/main/java/org/apache/commons/imaging/internal/Debug.java
@@ -26,6 +26,7 @@ import java.util.Date;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
+import java.util.Objects;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
@@ -105,7 +106,7 @@ public final class Debug {
     }
 
     private static void debug(final String message, final ICC_Profile value) {
-        debug("ICC_Profile " + message + ": " + ((value == null) ? "null" : 
value.toString()));
+        debug("ICC_Profile " + message + ": " + Objects.toString(value));
         if (value != null) {
             debug("\t getProfileClass: " + 
byteQuadToString(value.getProfileClass()));
             debug("\t getPCSType: " + byteQuadToString(value.getPCSType()));

Reply via email to