commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1743804 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/Digest.java
Date Sat, 14 May 2016 10:47:56 GMT
Author: sebb
Date: Sat May 14 10:47:56 2016
New Revision: 1743804

URL: http://svn.apache.org/viewvc?rev=1743804&view=rev
Log:
String.format does not support arrays

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/Digest.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/Digest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/Digest.java?rev=1743804&r1=1743803&r2=1743804&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/Digest.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/Digest.java Sat
May 14 10:47:56 2016
@@ -19,6 +19,7 @@ package org.apache.commons.codec.digest;
 import java.io.File;
 import java.io.IOException;
 import java.security.MessageDigest;
+import java.util.Arrays;
 import java.util.Locale;
 
 import org.apache.commons.codec.binary.Hex;
@@ -116,6 +117,6 @@ public class Digest {
 
     @Override
     public String toString() {
-        return String.format("%s[%s]", super.toString(), args);
+        return String.format("%s %s", super.toString(), Arrays.toString(args));
     }
 }



Mime
View raw message