You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2022/10/27 11:29:00 UTC

[jira] [Updated] (BCEL-165) getAnnotationEntries methods in JavaClass and FieldOrMethod duplicate code

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

Alex Herbert updated BCEL-165:
------------------------------
    Priority:   (was: P2)

> getAnnotationEntries methods in JavaClass and FieldOrMethod duplicate code
> --------------------------------------------------------------------------
>
>                 Key: BCEL-165
>                 URL: https://issues.apache.org/jira/browse/BCEL-165
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: unspecified
>         Environment: Operating System: All
> Platform: Macintosh
>            Reporter: Charles Honton
>            Assignee: Apache Commons Developers
>             Fix For: 6.0
>
>         Attachments: refactorGetAnnotations.diff
>
>
> JavaClass.getAnnotationEntries() and FieldOrMethod.getAnnotationEntries() are overly complex. 
> FieldOrMethod.addAnnotationEntry() appears to be in the wrong place - FieldGenOrMethodGen.addAnnotationEntry() is the proper method to use.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)