Proposal to make new-in-Java-SE-8 methods on AnnotatedElement default methods
Joe Darcy
joe.darcy at oracle.com
Wed Oct 30 16:01:32 PDT 2013
Hi Alex,
Thanks for the close reading; I've changed this part of the @implSpec to:
* @implSpec The default implementation first calls {@link
* #getDeclaredAnnotationsByType(Class)} passing {@code
* annotationClass} as the argument. If the returned array has
* length greater than zero, the array is returned. If the returned
* array is zero-length and this {@code AnnotatedElement} is a
* class and the argument type is an inheritable annotation type,
* and the superclass of this {@code AnnotatedElement} is non-null,
* then the returned result is the result of calling {@link
* #getAnnotationsByType(Class)} on the superclass with {@code
* annotationClass} as the argument. Otherwise, a zero-length
* array is returned.
Cheers,
-Joe
On 10/30/2013 11:50 AM, Alex Buckley wrote:
> spelling: AnnoatedElement
>
> Consider mentioning only the 'length' of an array, never its 'size'
> (or at least use the same term within a single @implSpec).
>
> There's a {@code getAnnotationsByType} which is missing its (Class).
>
> Alex
>
[snip]
More information about the enhanced-metadata-spec-discuss
mailing list