From f835c7efe4bad66c649472282ed7660d8f34178d Mon Sep 17 00:00:00 2001 From: dotasek Date: Thu, 3 Aug 2023 16:38:42 -0400 Subject: [PATCH] Only trim whitespace outside of the json --- .../main/java/org/hl7/fhir/r5/context/TerminologyCache.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TerminologyCache.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TerminologyCache.java index 07f56ec80..4d574c3c4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TerminologyCache.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TerminologyCache.java @@ -695,10 +695,7 @@ public class TerminologyCache { } protected String hashJson(String s) { -// s = StringUtils.remove(s, ' '); - s = StringUtils.remove(s, '\n'); - s = StringUtils.remove(s, '\r'); - return String.valueOf(s.hashCode()); + return String.valueOf(s.trim().hashCode()); } // management