Order of annotation declarations
Joel Borggren-Franck
joel.franck at oracle.com
Mon Jul 22 12:55:29 UTC 2013
Hi,
On 2013-07-19, Kasper Nielsen wrote:
> Hi,
>
> I haven't been able to find any info on this.
> but is [Class|AnnotatedMember].getAnnotations() required to return the
> annotations is order of declaration?
>
> For example, if I have the following definition
> @First
> @Second
> public class Foo{}
> Will Foo.class.getAnnotations() always return
> [First, Second] or is it allowed to return them in any order like
> getMethods()?
>
I don't think it is strictly required, but we usually try to keep them
in their natural order.
cheers
/Joel
More information about the core-libs-dev
mailing list