CodeQL library for Java/Kotlin
codeql/java-all 0.8.12 (changelog, source)
Search

Predicate hasUsefulBody

A predicate to find non-trivial method implementations. (A trivial implementation is either abstract, or it just throws UnsupportedOperationException or similar.)

Import path

import semmle.code.java.deadcode.DeadCode
predicate hasUsefulBody(Callable c)