Custom annotations - default values - III
26 July 2008This post will continue presenting custom annotations with default values.
The following example shows the same annotation as given in the previous posts, in use. This time with a value supplied for severity:
// Overriding default values @com.domain.tiger.a.InProgress @GroupTODO( severity=GroupTODO.Severity.DOCUMENTATION, item="Need to explain how this rather unusual method works", assignedTo="M Clark", dateAssigned="08/04/2008" ) public void reallyConfusingMethod(int codePoint) { // code goes here
Happy codding!
Related Posts:
- Custom annotations - default values - I
- Custom annotations - default values - II
- Defining annotations
- Custom annotations - Adding a member - II
- Custom annotations - Adding a member - I
- Categories of annotations
- Categories of annotations
- Using a custom task in Ant
- Defining own annotation type - II
- Annotating an annotation- II
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Custom annotations - default values - III