Fix equality method that caused missed WARNING messages

This commit is contained in:
dotasek 2024-07-18 12:21:00 -04:00
parent 231b18edad
commit 413592e544
1 changed files with 5 additions and 1 deletions

View File

@ -757,7 +757,11 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
@Override
public boolean equals(Object o) {
return (this.getMessage() != null && this.getMessage().equals(((ValidationMessage)o).getMessage())) && (this.getLocation() != null && this.getLocation().equals(((ValidationMessage)o).getLocation()));
return (
this.getMessage() != null && this.getMessage().equals(((ValidationMessage)o).getMessage()))
&& (this.getLocation() != null && this.getLocation().equals(((ValidationMessage)o).getLocation()))
&& (this.getLevel() != null && this.getLevel().equals(((ValidationMessage)o).getLevel()))
;
}
@Override