Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 97770 invoked from network); 11 Dec 2008 08:54:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 08:54:23 -0000 Received: (qmail 83432 invoked by uid 500); 11 Dec 2008 08:54:36 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 83414 invoked by uid 500); 11 Dec 2008 08:54:36 -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 83405 invoked by uid 99); 11 Dec 2008 08:54:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 00:54:36 -0800 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, 11 Dec 2008 08:54:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D0B7F2388882; Thu, 11 Dec 2008 00:54:02 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r725623 - /harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x501/AttributeTypeAndValue.java Date: Thu, 11 Dec 2008 08:54:02 -0000 To: commits@harmony.apache.org From: tonywu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081211085402.D0B7F2388882@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tonywu Date: Thu Dec 11 00:54:02 2008 New Revision: 725623 URL: http://svn.apache.org/viewvc?rev=725623&view=rev Log: optimize for toUpperCase Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x501/AttributeTypeAndValue.java Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x501/AttributeTypeAndValue.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x501/AttributeTypeAndValue.java?rev=725623&r1=725622&r2=725623&view=diff ============================================================================== --- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x501/AttributeTypeAndValue.java (original) +++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/x501/AttributeTypeAndValue.java Thu Dec 11 00:54:02 2008 @@ -38,6 +38,7 @@ import org.apache.harmony.security.asn1.BerOutputStream; import org.apache.harmony.security.internal.nls.Messages; import org.apache.harmony.security.utils.ObjectIdentifier; +import org.apache.harmony.security.Util; /** @@ -284,7 +285,7 @@ this.oid = thisOid; } else { - this.oid = (ObjectIdentifier) KNOWN_NAMES.get(sOid.toUpperCase()); + this.oid = (ObjectIdentifier) KNOWN_NAMES.get(Util.toUpperCase(sOid)); if (this.oid == null) { throw new IOException(Messages.getString("security.178", sOid)); //$NON-NLS-1$ } @@ -311,7 +312,7 @@ buf.append('='); if (value.escapedString == value.getHexString()) { //FIXME all chars in upper case - buf.append(value.getHexString().toUpperCase()); + buf.append(Util.toUpperCase(value.getHexString())); } else if (value.escapedString.length() != value.rawString.length()) { // was escaped value.appendQEString(buf);