Skip to content

Commit d315864

Browse files
authored
Merge pull request github#3108 from aschackmull/java/finalizemethod
Java: Fixup FinalizeMethod definition.
2 parents e559009 + 4bc0cb0 commit d315864

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/semmle/code/java/Member.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,13 @@ class GetterMethod extends Method {
481481

482482
/**
483483
* A finalizer method, with name `finalize`,
484-
* return type `void` and modifier `protected`.
484+
* return type `void` and no parameters.
485485
*/
486486
class FinalizeMethod extends Method {
487487
FinalizeMethod() {
488488
this.hasName("finalize") and
489489
this.getReturnType().hasName("void") and
490-
this.isProtected()
490+
this.hasNoParameters()
491491
}
492492
}
493493

0 commit comments

Comments
 (0)