Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e559009 + 4bc0cb0 commit d315864Copy full SHA for d315864
1 file changed
java/ql/src/semmle/code/java/Member.qll
@@ -481,13 +481,13 @@ class GetterMethod extends Method {
481
482
/**
483
* A finalizer method, with name `finalize`,
484
- * return type `void` and modifier `protected`.
+ * return type `void` and no parameters.
485
*/
486
class FinalizeMethod extends Method {
487
FinalizeMethod() {
488
this.hasName("finalize") and
489
this.getReturnType().hasName("void") and
490
- this.isProtected()
+ this.hasNoParameters()
491
}
492
493
0 commit comments