You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2024/10/24 17:28:00 UTC

(commons-compress) 03/03: Simplified the IcTuple.toString() method

This is an automated email from the ASF dual-hosted git repository.

ebourg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit 4baf96fe2b5a27088f160bdcf5a98a5e7321e26c
Author: Emmanuel Bourg <eb...@apache.org>
AuthorDate: Thu Oct 24 19:27:39 2024 +0200

    Simplified the IcTuple.toString() method
---
 .../apache/commons/compress/harmony/unpack200/IcTuple.java    | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/main/java/org/apache/commons/compress/harmony/unpack200/IcTuple.java b/src/main/java/org/apache/commons/compress/harmony/unpack200/IcTuple.java
index 991b4257a..f2abc2e41 100644
--- a/src/main/java/org/apache/commons/compress/harmony/unpack200/IcTuple.java
+++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/IcTuple.java
@@ -346,15 +346,6 @@ public class IcTuple {
 
     @Override
     public String toString() {
-        // @formatter:off
-        return new StringBuilder()
-            .append("IcTuple ")
-            .append('(')
-            .append(simpleClassName())
-            .append(" in ")
-            .append(outerClassString())
-            .append(')')
-            .toString();
-        // @formatter:on
+        return "IcTuple (" + simpleClassName() + " in " + outerClassString() + ')';
     }
 }