class WarningSample {
public void method() {}
public void anotherMethod() {
this.method();
}
}
aspect WarningAspect {
pointcut illegalCall(): call(* WarningSample.method())
&& within(WarningSample);
// the same thing happens with declare error
declare warning: illegalCall() : "Hey, don't " +
"do that, that is not nice. You should do something else";
public void e1() {}
declare warning: execution(* e1(..)): "hello " + /* comment */ "world"
public void e2() {}
declare warning: execution(* e2(..)): "hello " /* comment + "world";
public void e3() {}
declare warning: execution(* e3(..)): "hello " + // commenthere
}
='this.form.submit();'>
Nextcloud server, a safe home for all your data: https://github.com/nextcloud/server | www-data |
blob: 6de083414964fed9135bee7110c94cd8afb59a07 (
plain)