Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 29649 invoked from network); 27 Feb 2008 07:11:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2008 07:11:45 -0000 Received: (qmail 59018 invoked by uid 500); 27 Feb 2008 07:11:38 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 58976 invoked by uid 500); 27 Feb 2008 07:11: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 58956 invoked by uid 99); 27 Feb 2008 07:11:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 23:11: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 07:11:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 49B3A29A0017 for ; Tue, 26 Feb 2008 23:10:51 -0800 (PST) Message-ID: <1934708914.1204096251300.JavaMail.jira@brutus> Date: Tue, 26 Feb 2008 23:10:51 -0800 (PST) From: "Dave Brosius (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1424) [PATCH] simplify conversion of strings to primitives by using parseXXX, not valueOf(xxx).xxxValue() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [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 Affects Versions: core 1.4.1 Reporter: Dave Brosius Priority: Trivial Fix For: core 1.4.2 Attachments: 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.