Update CachingTransformer.java

This commit is contained in:
J. Fronny 2020-07-10 19:16:49 +00:00
parent 579fb77fe6
commit 769b879f2c

View File

@ -37,6 +37,13 @@ public abstract class CachingTransformer implements StringTransformer {
}
}
}
try {
FileOutputStream outS = new FileOutputStream(cacheFile);
cache.store(outS, "---Lang---");
outS.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (!cache.containsKey(str)) {
cache.put(str, getTransformed(str));