You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Purvesh Patel (JIRA)" <ji...@apache.org> on 2015/07/14 17:18:05 UTC

[jira] [Updated] (HADOOP-12224) new method to ReflectionUtils to test if the item is already public

     [ https://issues.apache.org/jira/browse/HADOOP-12224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Purvesh Patel updated HADOOP-12224:
-----------------------------------
    Attachment: HADOOP-12224-1.patch

> new method to ReflectionUtils to test if the item is already public
> -------------------------------------------------------------------
>
>                 Key: HADOOP-12224
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12224
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 2.5.0
>            Reporter: Purvesh Patel
>            Priority: Minor
>         Attachments: HADOOP-12224-1.patch
>
>
> It's noticed that it is common practice to call setAccessible on a method whether it is required or not. This patch provides a new method to ReflectionUtils to test if the item is already public and only call setAccessible if it is not public. Please see attached file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)