mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
17 lines
382 B
Plaintext
17 lines
382 B
Plaintext
/**
|
|
* @id java/examples/override-method
|
|
* @name Override of method
|
|
* @description Finds methods that override com.example.Class.baseMethod
|
|
* @tags method
|
|
* override
|
|
*/
|
|
|
|
import java
|
|
|
|
from Method override, Method base
|
|
where
|
|
base.hasName("baseMethod") and
|
|
base.getDeclaringType().hasQualifiedName("com.example", "Class") and
|
|
override.overrides+(base)
|
|
select override
|