From f3fde7b998e4e7bb3752278bdd6fe5a7e95985e4 Mon Sep 17 00:00:00 2001 From: dotasek Date: Tue, 23 Jul 2024 09:55:51 -0400 Subject: [PATCH] Revert ValidationMessage equality fix (on another branch) --- .../hl7/fhir/utilities/validation/ValidationMessage.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/validation/ValidationMessage.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/validation/ValidationMessage.java index f570957f1..61471be66 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/validation/ValidationMessage.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/validation/ValidationMessage.java @@ -757,11 +757,7 @@ public class ValidationMessage implements Comparator, 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())) - && (this.getLevel() != null && this.getLevel().equals(((ValidationMessage)o).getLevel())) - ; + return (this.getMessage() != null && this.getMessage().equals(((ValidationMessage)o).getMessage())) && (this.getLocation() != null && this.getLocation().equals(((ValidationMessage)o).getLocation())); } @Override