Supported Java version changed to 1.7

Unchecked warnings eliminated
This commit is contained in:
Jindra Petk
2013-06-02 22:03:03 +02:00
parent 201f9a40bd
commit 8b4308fd7f
23 changed files with 59 additions and 21 deletions

View File

@@ -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) {