mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
318 B
Plaintext
18 lines
318 B
Plaintext
/**
|
|
* @id java/examples/unusedmethod
|
|
* @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
|