Annotations Basics
Last updated
@Author(name = "Jane Doe")
@EBook
class MyClass { ... }@Author(name = "Jane Doe")
@Author(name = "John Smith")
class MyClass { ... } new @Interned MyObject(); myString = (@NonNull String) str; class UnmodifiableList<T> implements
@Readonly List<@Readonly T> { ... } void monitorTemperature() throws
@Critical TemperatureException { ... }