From d3c3b1d6c9ddc9d3358cb51a6d955634b2812c40 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Tue, 12 Apr 2022 19:24:42 -0400 Subject: [PATCH] Clean up YAML storage methods --- .../implementation/file/SeparatedYamlStorage.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/me/blackvein/quests/storage/implementation/file/SeparatedYamlStorage.java b/core/src/main/java/me/blackvein/quests/storage/implementation/file/SeparatedYamlStorage.java index 02bbc3660..5517a8309 100644 --- a/core/src/main/java/me/blackvein/quests/storage/implementation/file/SeparatedYamlStorage.java +++ b/core/src/main/java/me/blackvein/quests/storage/implementation/file/SeparatedYamlStorage.java @@ -55,13 +55,10 @@ public class SeparatedYamlStorage implements StorageImplementation { @Override public void init() throws Exception { - // TODO Auto-generated method stub - } @Override public void close() { - // TODO Auto-generated method stub } @SuppressWarnings("deprecation") @@ -377,7 +374,7 @@ public class SeparatedYamlStorage implements StorageImplementation { } @Override - public void saveQuester(final IQuester quester) throws Exception { + public void saveQuester(final IQuester quester) { final FileConfiguration data = quester.getBaseData(); try { data.save(new File(directoryPath + File.separator + quester.getUUID() + ".yml")); @@ -387,13 +384,13 @@ public class SeparatedYamlStorage implements StorageImplementation { } @Override - public void deleteQuester(final UUID uniqueId) throws Exception { + public void deleteQuester(final UUID uniqueId) { final File f = new File(directoryPath + File.separator + uniqueId + ".yml"); f.delete(); } @Override - public String getQuesterLastKnownName(final UUID uniqueId) throws Exception { + public String getQuesterLastKnownName(final UUID uniqueId) { IQuester quester = plugin.getQuester(uniqueId); if (quester != null) { quester.hardClear(); @@ -404,7 +401,7 @@ public class SeparatedYamlStorage implements StorageImplementation { } @Override - public Collection getSavedUniqueIds() throws Exception { + public Collection getSavedUniqueIds() { final Collection ids = new ConcurrentSkipListSet<>(); final File folder = new File(directoryPath); if (!folder.exists()) {