The Artima Developer Community
Sponsored Link

Java Buzz Forum
Friday Java Quiz: Annotation On Enum Constants

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Friday Java Quiz: Annotation On Enum Constants Posted: Aug 22, 2008 5:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Friday Java Quiz: Annotation On Enum Constants
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

Kevin IMed me yesterday with a question about deprecating a enum member, which I pass on to you today.

Q: Will the following enum compile?

enum Foo {
  BAR, @Deprecated Baz
}

Q: What about this?

enum Foo {
  BAR,
  /**
   * @deprecated BAZ should not be used any more
   */
  BAZ
}

Q: Will either have the intended effects on client code and Javadoc?

Read: Friday Java Quiz: Annotation On Enum Constants

Topic: Sun has open sourced the Lightweight UI Toolkit (LWUIT) under the GPL. Previous Topic   Next Topic Topic: Links for August 13th from PeopleOverProcess.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use