Only trim whitespace outside of the json
This commit is contained in:
parent
6d0883468b
commit
f835c7efe4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue