add type check in the equal method (#11346)

This commit is contained in:
William Cheng
2022-01-18 18:21:00 +08:00
committed by GitHub
parent 915af3afcb
commit 90972c638a

View File

@@ -451,6 +451,14 @@ public class JavaPlayFrameworkCodegen extends AbstractJavaCodegen implements Bea
@Override
public boolean equals(Object o) {
if (o == null) {
return false;
}
if (this.getClass() != o.getClass()) {
return false;
}
boolean result = super.equals(o);
JavaPlayFrameworkCodegen.ExtendedCodegenSecurity that = (JavaPlayFrameworkCodegen.ExtendedCodegenSecurity) o;
return result &&