You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Gabor Liptak (JIRA)" <ji...@apache.org> on 2015/07/09 02:32:05 UTC

[jira] [Commented] (MAPREDUCE-6430) new method to ReflectionUtils to test if the item is already public

    [ https://issues.apache.org/jira/browse/MAPREDUCE-6430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14619650#comment-14619650 ] 

Gabor Liptak commented on MAPREDUCE-6430:
-----------------------------------------

[~ppatel] Please consider uploading a text patch file with your changes.

http://wiki.apache.org/hadoop/HowToContribute

> new method to ReflectionUtils to test if the item is already public
> -------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6430
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6430
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: mrv2
>    Affects Versions: 2.5.0
>            Reporter: Purvesh Patel
>            Priority: Minor
>         Attachments: Patch.pdf
>
>
> 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)