Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
return this.name.equals(that.name) && this.value != null ? this.value.equals(that.value) : that.value == null && this.isSensitive == that.isSensitive && this.isReadOnly == that.isReadOnly && this.source == that.source && Objects.equals(this.synonyms, that.synonyms);
the second value of ternary operator is "that.value == null &&
this.isSensitive == that.isSensitive &&
this.isReadOnly == that.isReadOnly &&
this.source == that.source &&
Objects.equals(this.synonyms, that.synonyms);" rather than "that.value == null". Hence, it does not compare other fields when value is not null.
Attachments
Issue Links
- links to