mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-30 21:02:08 +00:00
Supported Java version changed to 1.7
Unchecked warnings eliminated
This commit is contained in:
@@ -123,10 +123,12 @@ public class Configuration {
|
||||
config.putAll(map);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void loadFromFile(String file, String replacementsFile) {
|
||||
ObjectInputStream ois = null;
|
||||
try {
|
||||
ois = new ObjectInputStream(new FileInputStream(file));
|
||||
|
||||
config = (HashMap<String, Object>) ois.readObject();
|
||||
} catch (FileNotFoundException ex) {
|
||||
} catch (ClassNotFoundException cnf) {
|
||||
|
||||
Reference in New Issue
Block a user