This content has been marked as final. Show 3 replies
I must have got confused somewhere. If this is a problem, I can turn it off
Yes please. This would make it consistent with the reflection api.
Although I don't know why somebody would want to retrieve the annotations
on an array class?
SomeObject test = new SomeObject; Class clazz = test.getClass(); // Empty System.out.println(Arrays.asList(clazz.getAnnotations())); // The annotations System.out.println(Arrays.asList(SomeObject.class.getAnnotations()));