Supressed warnings in eclipse
This commit is contained in:
parent
6ab7e10d1f
commit
b0e31eb837
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user