Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 52497 invoked from network); 27 Feb 2008 11:06:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2008 11:06:45 -0000 Received: (qmail 27428 invoked by uid 500); 27 Feb 2008 11:06:39 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 27393 invoked by uid 500); 27 Feb 2008 11:06:38 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 27384 invoked by uid 99); 27 Feb 2008 11:06:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 03:06:38 -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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 11:06:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 17A2929A0015 for ; Wed, 27 Feb 2008 03:05:51 -0800 (PST) Message-ID: <1883944656.1204110351095.JavaMail.jira@brutus> Date: Wed, 27 Feb 2008 03:05:51 -0800 (PST) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1424) [PATCH] simplify conversion of strings to primitives by using parseXXX, not valueOf(xxx).xxxValue() In-Reply-To: <1934708914.1204096251300.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Guggisberg resolved JCR-1424. ------------------------------------ Resolution: Fixed applied 2nd patch (#631552) thanks! > [PATCH] simplify conversion of strings to primitives by using parseXXX, not valueOf(xxx).xxxValue() > --------------------------------------------------------------------------------------------------- > > Key: JCR-1424 > URL: https://issues.apache.org/jira/browse/JCR-1424 > Project: Jackrabbit > Issue Type: Improvement > Components: jackrabbit-core > Reporter: Dave Brosius > Priority: Trivial > Fix For: 1.5 > > Attachments: simplify_string_to_primitive.patch, simplify_string_to_primitive.patch > > > Code converts strings to primitives using a two step process, eg > Boolean.valueOf(myString).booleanValue(); > can be simplified to > Boolean.parseBoolean(myString); > true of Float, Double, Int etc. > In some cases, this avoids allocating temporary boxed objects > patch fixes this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.