Made changes to the StorageSystem (IOExceptions, default serialization

manager, etc).
This commit is contained in:
nathan 2017-08-02 22:13:26 +02:00
parent 9514a89783
commit 97eb952ac9
1 changed files with 3 additions and 9 deletions

View File

@ -110,7 +110,7 @@ public class ProjectJar extends Project<ProjectJar> {
Storage storage = StorageSystem.Disk()
.file(location)
.serializer(manager)
.make();
.build();
storage.put(this.name, this);
storage.save();
@ -125,14 +125,8 @@ public class ProjectJar extends Project<ProjectJar> {
.file(location)
.serializer(manager)
.logger(null)
.make();
.build();
ProjectJar proj;
try {
proj = storage.get(projectName);
} catch (IOException e) {
throw new RuntimeException(e);
}
return proj;
return storage.get(projectName);
}
}