Skip to content

Commit 4bf26af

Browse files
committed
Add more test cases
1 parent 614bee9 commit 4bf26af

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
| Test.java:13:15:13:16 | f2 | Empty method found. |
2+
| Test.java:27:17:27:17 | f | Empty method found. |
3+
| Test.java:32:18:32:23 | method | Empty method found. |

java/ql/test/query-tests/EmptyMethod/Test.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,15 @@ public abstract class TestInner {
2121
public abstract void f();
2222
}
2323

24+
public class Derived extends TestInner {
25+
26+
@Override
27+
public void f() { } // $ Alert
28+
}
29+
30+
public interface TestInterface {
31+
32+
default void method() { } // $ Alert
33+
}
34+
2435
}

0 commit comments

Comments
 (0)