@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) public @interface MustNotSynchronize
@MustNotSynchronize(MustNotSynchronize.BLACKLIST)
may not
synchronize, nor may any of their transitive callees unless that callee is annotated with
@MustNotSynchronize(MustNotSynchronize.WHITELIST)
.Modifier and Type | Fields and Description |
---|---|
static boolean |
BLACKLIST |
static boolean |
WHITELIST
Constants for use in annotations.
|
Modifier and Type | Required Element and Description |
---|---|
String |
reason
Why the method is annotated.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
list
Whether the method is on the blacklist or the whitelist.
|
public abstract String reason