import org.aspectj.testing.*;
public class LocalInner {
public static void main(String[] args) {
class Local implements Runnable {
public void run() {}
}
Local local = new Local();
local.run();
Tester.checkAllEvents();
}
}
aspect Aspect {
pointcut local(): callsto(receptions(void run()) && instanceof(Runnable));
static before(): local() { Tester.event("before-run"); }
static after(): local() { Tester.event("after-run"); }
static around() returns void: local() { Tester.event("around-run"); proceed(); }
}
g' alt='cgit logo'/>
index : nextcloud-server.git | |
Nextcloud server, a safe home for all your data: https://github.com/nextcloud/server | www-data |
blob: 0564fa6a727ce1ffd77bf27837511cd53ff0ac23 (
plain)