From ca3811412b6505b7467033e0703a387527dc40db Mon Sep 17 00:00:00 2001 From: Nick Goupinets Date: Wed, 17 Feb 2021 10:20:33 -0500 Subject: [PATCH] Code review --- hapi-fhir-base/src/main/java/ca/uhn/fhir/util/StringUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/StringUtil.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/StringUtil.java index d868e53198d..4f3b4da8aae 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/StringUtil.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/util/StringUtil.java @@ -97,6 +97,7 @@ public class StringUtil { return ""; } + // char count can only be bigger than the code point count if (theString.length() <= theCodePointCount) { return theString; }