I was looking for a list of annotations in Java that have some meaningful use and are enabled by default (without having to import anything). For example, @Deprecated, @SuppressWarning, etc. I couldn’t find one though. Is it out there somewhere, or could we compile one?
Share
Annotations in
java.lang(not requiring additional import) package available in standard JDK include:@Deprecated@Override@SuppressWarnings@SafeVarargs(since Java 7)Don’t forget to check out
java.lang.annotationandjavax.annotationpackages.