A simpler model for repeating annotations
Joel Borggrén-Franck
joel.franck at oracle.com
Thu Jan 3 04:40:39 PST 2013
On 01/03/2013 02:46 AM, Alex Buckley wrote:
> Having spent today writing out the expected behavior of core reflection
> methods, I'm sympathetic to the idea that get[Declared]Annotations(Class)
> should be more clearly distinguished. I've avoided the term "repeating" in
> API names since repetition is not really the point - the point is multiple
> applications of the same annotation type, but "multiple" has its own
> downsides since there may only be one annotation for the new methods to
> return. I'd favor something more like getAll[Declared]Annotations(Class).
> Comments welcome.
>
getAll* sounds reasonable.
cheers
/Joel
More information about the enhanced-metadata-spec-discuss
mailing list