Merge pull request #1381 from hapifhir/do-20230803-terminology-cache-key-trim

TerminologyCache - only trim whitespace outside of the json keys
This commit is contained in:
Grahame Grieve 2023-08-04 11:48:30 +10:00 committed by GitHub
commit ba6aa542f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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