mirror of
https://github.com/google/nomulus.git
synced 2025-07-23 19:20:44 +02:00
Use equals() method to compare equality (#2158)
It will call equalsImmutableObject(), which seems the right thing to do. We only care if the two Tld objects have the same fields, not if they are the same object. ErrorProne complained about comparison by identity.
This commit is contained in:
parent
0801679173
commit
cb240a8f03
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ public class Tld extends ImmutableObject implements Buildable, UnsafeSerializabl
|
|||
public static final Money DEFAULT_REGISTRY_LOCK_OR_UNLOCK_BILLING_COST = Money.of(USD, 0);
|
||||
|
||||
public boolean equalYaml(Tld tldToCompare) {
|
||||
if (this == tldToCompare) {
|
||||
if (this.equals(tldToCompare)) {
|
||||
return true;
|
||||
}
|
||||
ObjectMapper mapper = createObjectMapper();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue