From c0b3a62905c6a242a0b2318286238381cafa7153 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 23 Nov 2010 21:57:56 +0100 Subject: [PATCH] Override new save() method correctly. --- .../sone/freenet/PluginStoreConfigurationBackend.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java b/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java index 6815371..5e30de1 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java +++ b/src/main/java/net/pterodactylus/sone/freenet/PluginStoreConfigurationBackend.java @@ -17,7 +17,6 @@ package net.pterodactylus.sone.freenet; -import java.util.logging.Level; import java.util.logging.Logger; import net.pterodactylus.util.config.AttributeNotFoundException; @@ -37,6 +36,7 @@ import freenet.pluginmanager.PluginStore; public class PluginStoreConfigurationBackend implements ExtendedConfigurationBackend { /** The logger. */ + @SuppressWarnings("unused") private static final Logger logger = Logging.getLogger(PluginStoreConfigurationBackend.class); /** The plugin respirator. */ @@ -169,18 +169,15 @@ public class PluginStoreConfigurationBackend implements ExtendedConfigurationBac save(); } - // - // PRIVATE METHODS - // - /** - * Saves the configuration to the plugin store. + * {@inheritDoc} */ - private void save() { + @Override + public void save() throws ConfigurationException { try { pluginRespirator.putStore(pluginStore); } catch (DatabaseDisabledException dde1) { - logger.log(Level.WARNING, "Could not store plugin store, database is disabled.", dde1); + throw new ConfigurationException("Could not store plugin store, database is disabled.", dde1); } } -- 2.7.4