From 5c9f2617dad7bd8df038b45e22d0cad900a2d904 Mon Sep 17 00:00:00 2001 From: Nick Goupinets Date: Tue, 22 Jun 2021 15:23:03 -0400 Subject: [PATCH] Code review --- .../java/ca/uhn/fhir/mdm/util/MdmResourceUtil.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/util/MdmResourceUtil.java b/hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/util/MdmResourceUtil.java index 1333103662c..8b8717e1bee 100644 --- a/hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/util/MdmResourceUtil.java +++ b/hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/util/MdmResourceUtil.java @@ -69,18 +69,18 @@ public final class MdmResourceUtil { return resourceHasTag(theBaseResource, MdmConstants.SYSTEM_GOLDEN_RECORD_STATUS, MdmConstants.CODE_GOLDEN_RECORD_REDIRECTED); } - private static boolean resourceHasTag(IBaseResource theTheBaseResource, String theSystem, String theCode) { - if (theTheBaseResource == null) { + private static boolean resourceHasTag(IBaseResource theBaseResource, String theSystem, String theCode) { + if (theBaseResource == null) { return false; } - return theTheBaseResource.getMeta().getTag(theSystem, theCode) != null; + return theBaseResource.getMeta().getTag(theSystem, theCode) != null; } - private static boolean resourceHasTagWithSystem(IBaseResource theTheBaseResource, String theSystem) { - if (theTheBaseResource == null) { + private static boolean resourceHasTagWithSystem(IBaseResource theBaseResource, String theSystem) { + if (theBaseResource == null) { return false; } - return theTheBaseResource.getMeta().getTag().stream().anyMatch(tag -> tag.getSystem().equalsIgnoreCase(theSystem)); + return theBaseResource.getMeta().getTag().stream().anyMatch(tag -> tag.getSystem().equalsIgnoreCase(theSystem)); } private static Optional getTagWithSystem(IBaseResource theResource, String theSystem) {