Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 83605 invoked from network); 17 Sep 2007 14:03:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2007 14:03:20 -0000 Received: (qmail 29075 invoked by uid 500); 17 Sep 2007 14:03:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 28893 invoked by uid 500); 17 Sep 2007 14:03:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 28883 invoked by uid 99); 17 Sep 2007 14:03:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 07:03:11 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 14:05:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 247D7714168 for ; Mon, 17 Sep 2007 07:02:56 -0700 (PDT) Message-ID: <6175917.1190037776138.JavaMail.jira@brutus> Date: Mon, 17 Sep 2007 07:02:56 -0700 (PDT) From: "Stefan Wohlgemuth (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (BEANUTILS-295) Unnecessary Garbage Objects in Class PropertyUtilsBean MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Unnecessary Garbage Objects in Class PropertyUtilsBean ------------------------------------------------------ Key: BEANUTILS-295 URL: https://issues.apache.org/jira/browse/BEANUTILS-295 Project: Commons BeanUtils Issue Type: Improvement Components: Bean / Property Utils Affects Versions: 1.8.0-BETA Reporter: Stefan Wohlgemuth Priority: Minor In class PropertyUtilsBean there are several places where the following statement is called: Object value = invokeMethod(readMethod, bean, new Object[0]); The statement could be replace with the following statement, whithout creating the unused Object array (as we know invoke will be called of a method without method parameters): Object value = invokeMethod(readMethod, bean, null); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.