Update to allow the project to compile in Netbeans, as per:

http://stackoverflow.com/questions/314572/bug-in-eclipse-compiler-or-in-javac
Also added license files, for building into JAR file
This commit is contained in:
Brettflan
2011-10-10 20:48:23 -05:00
parent 7b5124529a
commit 7d85a478a8
4 changed files with 854 additions and 2 deletions

View File

@ -138,7 +138,7 @@ public class Persist {
// LOAD BY TYPE
public <T> T load(Type typeOfT, String name)
{
return load(typeOfT, getFile(name));
return (T) load(typeOfT, getFile(name));
}
public <T> T load(Type typeOfT, File file)
@ -148,7 +148,7 @@ public class Persist {
return null;
}
return p.gson.fromJson(content, typeOfT);
return (T) p.gson.fromJson(content, typeOfT);
}
}