Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E4C6922E for ; Fri, 4 Nov 2011 02:35:55 +0000 (UTC) Received: (qmail 17581 invoked by uid 500); 4 Nov 2011 02:35:54 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 17517 invoked by uid 500); 4 Nov 2011 02:35:54 -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 17501 invoked by uid 99); 4 Nov 2011 02:35:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2011 02:35:54 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2011 02:35:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6369A3319C0 for ; Fri, 4 Nov 2011 02:35:33 +0000 (UTC) Date: Fri, 4 Nov 2011 02:35:33 +0000 (UTC) From: "Adrian Cumiskey (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <1922198095.58183.1320374133408.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1298717541.37266.1319918252278.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OGNL-35) [PATCH] Improvements to {List,Map,Array}PropertyAccessor and ASTProperty MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OGNL-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143700#comment-13143700 ] Adrian Cumiskey commented on OGNL-35: ------------------------------------- patch-OGNL35-v2.txt improves upon and replaces the original one. > [PATCH] Improvements to {List,Map,Array}PropertyAccessor and ASTProperty > ------------------------------------------------------------------------ > > Key: OGNL-35 > URL: https://issues.apache.org/jira/browse/OGNL-35 > Project: OGNL > Issue Type: Improvement > Reporter: Adrian Cumiskey > Priority: Minor > Attachments: patch-OGNL35-v2.txt, patch-OGNL35.txt > > > * Flipped equals() everywhere where a variable is tested against a String constant. > * ListPropertyAccessor: CPD fix, extracted shared method getSourceBeanMethod() from getSourceSetter() and getSourceAccessor(). > * ASTProperty: CPD fix, extracted shared method getSourceString() from toGetSourceString() and toSetSourceString(). > * ArrayPropertyAccessor: CPD fix, extracted getIndexString() from getSourceAccessor() and getSourceSetter(). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira