in src/org/gridgain/inspection/abbrev/AbbreviationRules.java [264:297]
private void loadAbbreviations() {
if (abbreviationFile.lastModified() > loadTs) {
loadTs = abbreviationFile.lastModified();
InputStream input = null;
try {
input = new FileInputStream(abbreviationFile);
Properties props = new Properties();
props.load(new BufferedReader(new InputStreamReader(input)));
Map<String, String> refreshed = new ConcurrentHashMap<String, String>();
for (Map.Entry<Object, Object> entry : props.entrySet())
refreshed.put((String)entry.getKey(), (String)entry.getValue());
abbreviationMap = refreshed;
}
catch (IOException ignored) {
// Just leave the last state.
}
finally {
if (input != null) {
try {
input.close();
}
catch (IOException ignored) {
}
}
}
}
}