Last active
August 29, 2015 14:25
-
-
Save macu/57a3fee230b1bac67211 to your computer and use it in GitHub Desktop.
How to mark deprecated in Java. http://stackoverflow.com/a/9031854
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * You shouldn't call this method anymore. | |
| * | |
| * Don't forget to add a clarifying javadoc field for the programmer: | |
| * | |
| * @deprecated Use {@link #new()} instead. | |
| */ | |
| @Deprecated | |
| public void old() { | |
| // ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment