Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Annotations Writing Your Own Annotation Applying an Annotation

Timothy Boland
Timothy Boland
18,237 Points

I didnt see anything in the annotation videos that discusses the Role.ADMIN element and whether or not it is required

Was this quiz question, put in by mistake, or was there suppose to be a video covering the topic of @Secure Role.ADMIN

1 Answer

The only element that is not required is if the element is value. So in the exercise, the annotation of

@Secure(role = Role.ADMIN)

the role element is required because it is not "value".