Files
codeql/java/ql/examples/unusedmethod.ql
2019-07-26 17:47:11 +02:00

16 lines
282 B
Plaintext

/**
* @name Unused private method
* @description Finds private methods that are not accessed
* @tags method
* access
* private
*/
import java
from Method m
where m.isPrivate()
and not exists(m.getAReference())
and not m instanceof InitializerMethod
select m