summaryrefslogtreecommitdiffstats
path: root/tests/java5/suppressedWarnings/Suppression1.aj
blob: 2b1d869e32b83e70766029f3263b15874f223a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import org.aspectj.lang.annotation.*;

// 5 pieces of advice.  Numbers 2, 4, 5 should not report a warning for not matching
public class Suppression1 {

  public static void main(String []argv) {
  }
}


aspect A {

  before(): call(* *(..)) && !within(A) {//13
  }

  @SuppressAjWarnings
  before(): call(* *(..)) && !within(A) {//17
  }
  
  @SuppressAjWarnings("bananas")
  before(): call(* *(..)) && !within(A) {//21
  }

  @SuppressAjWarnings("adviceDidNotMatch")
  before(): call(* *(..)) && !within(A) {//25
  }

  @SuppressAjWarnings({"adviceDidNotMatch","custard"})
  before(): call(* *(..)) && !within(A) {//29
  }

}