Custom annotations - default values - III

26 July 2008

This 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!

del.icio.us:Custom annotations - default values - III  digg:Custom annotations - default values - III  spurl:Custom annotations - default values - III  wists:Custom annotations - default values - III  simpy:Custom annotations - default values - III  newsvine:Custom annotations - default values - III  blinklist:Custom annotations - default values - III  furl:Custom annotations - default values - III  reddit:Custom annotations - default values - III  fark:Custom annotations - default values - III  blogmarks:Custom annotations - default values - III  Y!:Custom annotations - default values - III  smarking:Custom annotations - default values - III  magnolia:Custom annotations - default values - III  segnalo:Custom annotations - default values - III  gifttagging:Custom annotations - default values - III

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

Leave a Reply