Alex Rivera | Logout

Java: Common Annotation for "Not Yet Implemented"

Asked 2012-04-02T21:49:09.373
30

Is there a common or standard annotation in Java for methods that, while defined, have yet to be implemented?

So that, for instance, if I were using a pre-alpha version of a library that contained something like

@NotImplementedYet
public void awesomeMethodThatTotallyDoesExactlyWhatYouNeed(){ /* TODO */ }

I'd get a compile-time warning when trying to call awesomeMethodThatTotallyDoesExactlyWhatYouNeed?

Edit
Report

2 Answers

19

You might want to use UnsupportedOperationException and detect calls to-yet-to-be-implemented methods when running your tests.

answered 2012-04-02T21:58:37.983
1

Google libraries use the @Beta annotations for API that is likely to change but the methods are implemented though

answered 2012-04-02T21:59:37.377

Your Answer