mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-10 14:10:57 +02:00
14 lines
282 B
Java
14 lines
282 B
Java
public class Declares {
|
|
public void m() { // should be error on this line
|
|
}
|
|
}
|
|
|
|
aspect Checker {
|
|
declare error: execution(* m()): "too short method name";
|
|
declare error: execution(* n()): "too short method name"; // no effect
|
|
|
|
//declare warning: exec: "bar";
|
|
}
|
|
|
|
|