Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 42582 invoked from network); 1 Oct 2009 12:30:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 12:30:02 -0000 Received: (qmail 64067 invoked by uid 500); 1 Oct 2009 12:30:02 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 64039 invoked by uid 500); 1 Oct 2009 12:30:02 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 64030 invoked by uid 99); 1 Oct 2009 12:30:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 12:30:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 12:29:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5D56B23888DC; Thu, 1 Oct 2009 12:29:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@harmony.apache.org From: tellison@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091001122938.5D56B23888DC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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(", ");