Skip to content

Commit 9ada903

Browse files
committed
Member: Allow methods with empty bodies for overlay
1 parent f8373c1 commit 9ada903

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

java/ql/lib/semmle/code/java/Member.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,11 @@ class SrcMethod extends Method {
623623
then implementsInterfaceMethod(result, this)
624624
else result.getASourceOverriddenMethod*() = this
625625
) and
626-
(exists(result.getBody()) or result.hasModifier("native"))
626+
(
627+
hasOverlay() or
628+
exists(result.getBody()) or
629+
result.hasModifier("native")
630+
)
627631
}
628632
}
629633

0 commit comments

Comments
 (0)