1 2 3 4 5 6 7 8 9 10 11
public class DeclareWarning { public void m() { // should be error on this line } } aspect Checker { declare warning: execution(* m()): "too short method name"; declare warning: execution(* n()): "too short method name"; // no effect }