Bug 52980 - getAnnotationEntries methods in JavaClass and FieldOrMethod duplicate code
Summary: getAnnotationEntries methods in JavaClass and FieldOrMethod duplicate code
Status: NEW
Alias: None
Product: BCEL - Now in Jira
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: issues@commons.apache.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-23 18:47 UTC by Chas Honton
Modified: 2012-03-23 18:48 UTC (History)
1 user (show)



Attachments
refactoring of JavaClass, FieldOrMethod, and AnnotationEntry (6.05 KB, application/octet-stream)
2012-03-23 18:47 UTC, Chas Honton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chas Honton 2012-03-23 18:47:05 UTC
Created attachment 28504 [details]
refactoring of JavaClass, FieldOrMethod, and AnnotationEntry

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.