Merge pull request #3108 from aschackmull/java/finalizemethod

Java: Fixup FinalizeMethod definition.
This commit is contained in:
yo-h
2020-03-23 18:27:57 -04:00
committed by GitHub

View File

@@ -481,13 +481,13 @@ class GetterMethod extends Method {
/**
* A finalizer method, with name `finalize`,
* return type `void` and modifier `protected`.
* return type `void` and no parameters.
*/
class FinalizeMethod extends Method {
FinalizeMethod() {
this.hasName("finalize") and
this.getReturnType().hasName("void") and
this.isProtected()
this.hasNoParameters()
}
}