mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
Since classes are non-final "instanceof" check is better in #equals
This commit is contained in:
parent
529b9d6833
commit
f93c41b1be
4 changed files with 4 additions and 8 deletions
|
@ -32,9 +32,8 @@ public class AST extends Z3Object implements Comparable<AST>
|
|||
@Override
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
if (o == null) return false;
|
||||
if (o == this) return true;
|
||||
if (o.getClass() != this.getClass()) return false;
|
||||
if (!(o instanceof AST)) return false;
|
||||
AST casted = (AST) o;
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue