Java: Add initial version of empty method query

This commit is contained in:
Tamas Vajk
2025-03-07 09:40:38 +01:00
parent 9a8cb1a55b
commit f7f8b47f12
8 changed files with 476 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import org.aspectj.lang.annotation.Pointcut;
public class Test {
// COMPLIANT
public void f() {
int i = 0;
}
// COMPLIANT
public void f1() {
// intentionally empty
}
// NON_COMPLIANT
public void f2() {}
// COMPLIANT - exception
@Pointcut()
public void f4() {}
public abstract class TestInner {
public abstract void f(); // COMPLIANT - intentionally empty
}
}