1 2 3 4 5 6 7 8 9 10 11 12
public aspect PlainWithinTests { // CW L 21 declare warning : execution(* foo()) && within(@MyAnnotation *) : "positive within match on annotation"; // CW L25 declare warning : execution(* foo()) && !within(@MyAnnotation *) : "negative within match on annotation"; }