Java: Fixup FinalizeMethod definition.

This commit is contained in:
Anders Schack-Mulligen
2020-03-23 11:11:00 +01:00
parent 16f2957029
commit 4bc0cb0d28

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()
}
}