Code cleanup

This commit is contained in:
Anuken
2019-03-24 19:58:51 -04:00
parent bb9573b85a
commit 97f5bf3cc4
14 changed files with 42 additions and 28 deletions

View File

@@ -30,7 +30,7 @@ public class BundleLauncher {
Log.info("Parsing bundle: {0}", child);
OrderedMap<String, String> other = new OrderedMap<>();
PropertiesUtils.load(other, Files.newBufferedReader(child, StandardCharsets.UTF_8));
PropertiesUtils.load(other, Files.newBufferedReader(child, Strings.utf8));
removals.clear();
for(String key : other.orderedKeys()){
@@ -68,7 +68,7 @@ public class BundleLauncher {
other.remove(key);
}
Files.write(child, result.toString().getBytes(StandardCharsets.UTF_8));
Files.write(child, result.toString().getBytes(Strings.utf8));
}catch (IOException e){
throw new RuntimeException(e);