Remove unnecessary synchronized block + System.out

This commit is contained in:
dotasek 2022-01-06 16:56:19 -05:00
parent 1a2e995104
commit a12324c3a6
1 changed files with 47 additions and 50 deletions

View File

@ -127,7 +127,6 @@ public class TerminologyCache {
static {
String cacheErrorsProperty = System.getProperty("cacheErrors");
cacheErrors = cacheErrorsProperty != null ? "TRUE".equals(cacheErrorsProperty.toUpperCase(Locale.ROOT)) : false;
System.out.println();
}
// use lock from the context
@ -422,7 +421,6 @@ public class TerminologyCache {
}
private void load() throws FHIRException {
synchronized (lock) {
for (String fn : new File(folder).list()) {
if (fn.endsWith(".cache") && !fn.equals("validation.cache")) {
int c = 0;
@ -477,7 +475,6 @@ public class TerminologyCache {
}
}
}
}
private String loadJS(JsonElement e) {
if (e == null)