@Target(value={METHOD,FIELD,TYPE})
@Retention(value=RUNTIME)
public @interface Unique
Typical usage of this annotation would be to decorate a utility method in
a mixin, or mark an interface-implementing method which must not overwrite a
target if it exists (consider appropriate use of Intrinsic in these
situations).
Because of the mixed usage, this annotation has different implications for methods with differing visibility:
silent() is set to true, a
warning-level message is generated.Notes
Implements annotation with unique set to true
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
silent
If this annotation is applied to a public method in a mixin and a
conflicting method is found in a target class, then a
warning-level message is generated in the log.
|
public abstract boolean silent