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 154D311891 for ; Fri, 21 Feb 2014 17:53:32 +0000 (UTC) Received: (qmail 1260 invoked by uid 500); 21 Feb 2014 17:53:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 1060 invoked by uid 500); 21 Feb 2014 17:53:20 -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 909 invoked by uid 99); 21 Feb 2014 17:53:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 17:53:19 +0000 Date: Fri, 21 Feb 2014 17:53:19 +0000 (UTC) From: "Andre Diermann (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SANDBOX-462) Refactoring of AccessibleObjectsRegistry MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SANDBOX-462?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D139= 08570#comment-13908570 ]=20 Andre Diermann commented on SANDBOX-462: ---------------------------------------- Hi Benedikt, any hints how to check the rules and format the code already on my site? Do= you have a code style config for your IDE? Do you run checkstyle locally? = Currently I don't even know what I messed up exactly :-/ So sorry for the additional effort any many thanks for applying the patch. = :-) I will now continue with the "bigger" changes. See you, Andr=C3=A9 > Refactoring of AccessibleObjectsRegistry > ---------------------------------------- > > Key: SANDBOX-462 > URL: https://issues.apache.org/jira/browse/SANDBOX-462 > Project: Commons Sandbox > Issue Type: Improvement > Components: BeanUtils2 > Reporter: Andre Diermann > Priority: Minor > Attachments: Commons-BeanUtils2-462#1.patch > > > Summary: > The AccessibleObjectsRegistry class provides two get methods, while one i= s a convenient method for the other. > Both methods take one conditional parameter, boolean exact, and the actua= l get method is very long, which makes it somehow complex to understand. > Suggestion: > What could be improved IMHO: > - Instead of using conditional methods, like get(boolean doSomethingSpeci= alIfTrue, ...), it is more convenient to provide dedicated methods like get= Something() and getAnotherThing(). > - In this regard the difference between an exact or, let's call it, match= ing descriptor should be expressed through inheritance rather than object a= llocation (=3D expressing it by a field boolean exact). > - The very long get method should be refined > - Another very minor issue is the naming of the paramTypes field within t= he inner AccessibleObjectDescriptor class, which I would suggest to rename = to parameterTypes to fit the naming of the other occurrences.=20 -- This message was sent by Atlassian JIRA (v6.1.5#6160)