blob: fa4d85990c2cba8ace5708f72007bcfd0bb77e55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
public aspect Code {
declare warning: call(* foo(..)): "Call to foo made inside class {joinpoint.enclosingclass}";
declare warning: call(* foo(..)): "Call to foo made inside member {joinpoint.enclosingmember.name}";
declare warning: call(* foo(..)): "Call to foo made inside member {joinpoint.enclosingmember}";
}
class Bar {
public void booble() {
foo();
}
public void foo() {}
}
class Boo {
public void m() {
foo();
}
public void foo() {}
}
|