mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Java: Add missing override annotations.
This commit is contained in:
@@ -15,7 +15,7 @@ import java
|
||||
* including the body (if any), as opposed to the location of its name only.
|
||||
*/
|
||||
class RangeCallable extends Callable {
|
||||
predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
|
||||
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
|
||||
exists(int elSuper, int ecSuper | super.hasLocationInfo(path, sl, sc, elSuper, ecSuper) |
|
||||
this.getBody().hasLocationInfo(path, _, _, el, ec)
|
||||
or
|
||||
@@ -39,7 +39,7 @@ class RangeCallable extends Callable {
|
||||
* including the range of its members (if any), as opposed to the location of its name only.
|
||||
*/
|
||||
class RangeRefType extends RefType {
|
||||
predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
|
||||
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
|
||||
exists(int elSuper, int ecSuper | super.hasLocationInfo(path, sl, sc, elSuper, ecSuper) |
|
||||
lastMember().hasLocationInfo(path, _, _, el, ec)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user