Supressed warnings in eclipse

This commit is contained in:
Olof Larsson 2011-10-11 13:03:33 +02:00
parent 6ab7e10d1f
commit b0e31eb837

View File

@ -136,11 +136,13 @@ public class Persist {
// LOAD BY TYPE
@SuppressWarnings("unchecked")
public <T> T load(Type typeOfT, String name)
{
return (T) load(typeOfT, getFile(name));
}
@SuppressWarnings("unchecked")
public <T> T load(Type typeOfT, File file)
{
String content = DiscUtil.readCatch(file);