harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r820630 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyNameAndTypeCache.java
Date Thu, 01 Oct 2009 12:29:38 GMT
Author: tellison
Date: Thu Oct  1 12:29:37 2009
New Revision: 820630

URL: http://svn.apache.org/viewvc?rev=820630&view=rev
Log:
Print out readable version of int[] in display string.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyNameAndTypeCache.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyNameAndTypeCache.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyNameAndTypeCache.java?rev=820630&r1=820629&r2=820630&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyNameAndTypeCache.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyNameAndTypeCache.java
Thu Oct  1 12:29:37 2009
@@ -17,6 +17,8 @@
 
 package org.apache.harmony.luni.internal.reflect;
 
+import java.util.Arrays;
+
 class ProxyNameAndTypeCache {
     int[][] keyTable;
 
@@ -87,13 +89,15 @@
     }
 
     @Override
+    @SuppressWarnings("nls")
     public String toString() {
         int max = size();
         StringBuilder buf = new StringBuilder();
         buf.append("{");
         for (int i = 0; i < max; ++i) {
             if (keyTable[i] != null) {
-                buf.append(keyTable[i]).append("->").append(valueTable[i]);
+                buf.append(Arrays.toString(keyTable[i]));
+                buf.append("->").append(valueTable[i]);
             }
             if (i < max) {
                 buf.append(", ");



Mime
View raw message