diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/TerserUtil.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/TerserUtil.java index 8db2d50dae0..fc44ecdbc57 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/TerserUtil.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/TerserUtil.java @@ -46,7 +46,7 @@ public final class TerserUtil { public static final String FIELD_NAME_IDENTIFIER = "identifier"; - private static final String OUR_EQUALS_DEEP = "equalsDeep"; + private static final String EQUALS_DEEP = "equalsDeep"; public static final Collection IDS_AND_META_EXCLUDES = Collections.unmodifiableSet(Stream.of("id", "identifier", "meta").collect(Collectors.toSet())); @@ -188,7 +188,7 @@ public final class TerserUtil { } /** - * Checks if two items are equal via {@link #OUR_EQUALS_DEEP} method + * Checks if two items are equal via {@link #EQUALS_DEEP} method * * @param theItem1 First item to compare * @param theItem2 Second item to compare @@ -199,9 +199,9 @@ public final class TerserUtil { return theItem2 == null; } - final Method method = getMethod(theItem1, OUR_EQUALS_DEEP); + final Method method = getMethod(theItem1, EQUALS_DEEP); if (method == null) { - throw new IllegalArgumentException(String.format("Instance %s do not provide %s method", theItem1, OUR_EQUALS_DEEP)); + throw new IllegalArgumentException(String.format("Instance %s do not provide %s method", theItem1, EQUALS_DEEP)); } return equals(theItem1, theItem2, method); } @@ -211,14 +211,14 @@ public final class TerserUtil { try { return (Boolean) theMethod.invoke(theItem1, theItem2); } catch (Exception e) { - throw new RuntimeException(String.format("Unable to compare equality via %s", OUR_EQUALS_DEEP), e); + throw new RuntimeException(String.format("Unable to compare equality via %s", EQUALS_DEEP), e); } } return theItem1.equals(theItem2); } private static boolean contains(IBase theItem, List theItems) { - final Method method = getMethod(theItem, OUR_EQUALS_DEEP); + final Method method = getMethod(theItem, EQUALS_DEEP); return theItems.stream().anyMatch(i -> equals(i, theItem, method)); }