From 1a00fbd0af5bd04d5865b5c6d9c928941a86c79e Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Sat, 19 Mar 2016 19:10:25 +0200 Subject: [PATCH] Modifier "public" is redundant for interface methods --- .../ro/fortsoft/pf4j/demo/api/Greeting.java | 2 +- .../ro/fortsoft/pf4j/ExtensionFactory.java | 2 +- .../ro/fortsoft/pf4j/ExtensionFinder.java | 4 +- .../fortsoft/pf4j/PluginDescriptorFinder.java | 2 +- .../java/ro/fortsoft/pf4j/PluginFactory.java | 2 +- .../java/ro/fortsoft/pf4j/PluginManager.java | 52 +++++++++---------- .../ro/fortsoft/pf4j/PluginRepository.java | 4 +- .../ro/fortsoft/pf4j/PluginStateListener.java | 2 +- .../fortsoft/pf4j/PluginStatusProvider.java | 6 +-- 9 files changed, 38 insertions(+), 38 deletions(-) diff --git a/demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java b/demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java index c451b09..bdf2fd4 100644 --- a/demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java +++ b/demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java @@ -22,6 +22,6 @@ import ro.fortsoft.pf4j.ExtensionPoint; */ public interface Greeting extends ExtensionPoint { - public String getGreeting(); + String getGreeting(); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFactory.java b/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFactory.java index c1bd006..be8c62f 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFactory.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFactory.java @@ -20,6 +20,6 @@ package ro.fortsoft.pf4j; */ public interface ExtensionFactory { - public Object create(Class extensionClass); + Object create(Class extensionClass); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java b/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java index af38102..3dc5149 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java @@ -26,11 +26,11 @@ public interface ExtensionFinder { /** * Retrieves a list with all extensions found for an extension point. */ - public List> find(Class type); + List> find(Class type); /** * Retrieves a list with all extension class names found for a plugin. */ - public Set findClassNames(String pluginId); + Set findClassNames(String pluginId); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java index 4f045e7..6cb208c 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java @@ -26,6 +26,6 @@ import java.io.File; */ public interface PluginDescriptorFinder { - public PluginDescriptor find(File pluginRepository) throws PluginException; + PluginDescriptor find(File pluginRepository) throws PluginException; } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginFactory.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginFactory.java index d97330c..85215ee 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginFactory.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginFactory.java @@ -20,6 +20,6 @@ package ro.fortsoft.pf4j; */ public interface PluginFactory { - public Plugin create(PluginWrapper pluginWrapper); + Plugin create(PluginWrapper pluginWrapper); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java index 2cb2adb..d079a64 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java @@ -31,27 +31,27 @@ public interface PluginManager { /** * Retrieves all plugins. */ - public List getPlugins(); + List getPlugins(); /** * Retrieves all plugins with this state. */ - public List getPlugins(PluginState pluginState); + List getPlugins(PluginState pluginState); /** * Retrieves all resolved plugins (with resolved dependency). */ - public List getResolvedPlugins(); + List getResolvedPlugins(); /** * Retrieves all unresolved plugins (with unresolved dependency). */ - public List getUnresolvedPlugins(); + List getUnresolvedPlugins(); /** * Retrieves all started plugins. */ - public List getStartedPlugins(); + List getStartedPlugins(); /** * Retrieves the plugin with this id. @@ -59,12 +59,12 @@ public interface PluginManager { * @param pluginId * @return the plugin */ - public PluginWrapper getPlugin(String pluginId); + PluginWrapper getPlugin(String pluginId); /** * Load plugins. */ - public void loadPlugins(); + void loadPlugins(); /** * Load a plugin. @@ -72,31 +72,31 @@ public interface PluginManager { * @param pluginArchiveFile * @return the pluginId of the installed plugin or null */ - public String loadPlugin(File pluginArchiveFile); + String loadPlugin(File pluginArchiveFile); /** * Start all active plugins. */ - public void startPlugins(); + void startPlugins(); /** * Start the specified plugin and it's dependencies. * * @return the plugin state */ - public PluginState startPlugin(String pluginId); + PluginState startPlugin(String pluginId); /** * Stop all active plugins. */ - public void stopPlugins(); + void stopPlugins(); /** * Stop the specified plugin and it's dependencies. * * @return the plugin state */ - public PluginState stopPlugin(String pluginId); + PluginState stopPlugin(String pluginId); /** * Unload a plugin. @@ -104,7 +104,7 @@ public interface PluginManager { * @param pluginId * @return true if the plugin was unloaded */ - public boolean unloadPlugin(String pluginId); + boolean unloadPlugin(String pluginId); /** * Disables a plugin from being loaded. @@ -112,7 +112,7 @@ public interface PluginManager { * @param pluginId * @return true if plugin is disabled */ - public boolean disablePlugin(String pluginId); + boolean disablePlugin(String pluginId); /** * Enables a plugin that has previously been disabled. @@ -120,7 +120,7 @@ public interface PluginManager { * @param pluginId * @return true if plugin is enabled */ - public boolean enablePlugin(String pluginId); + boolean enablePlugin(String pluginId); /** * Deletes a plugin. @@ -128,29 +128,29 @@ public interface PluginManager { * @param pluginId * @return true if the plugin was deleted */ - public boolean deletePlugin(String pluginId); + boolean deletePlugin(String pluginId); - public PluginClassLoader getPluginClassLoader(String pluginId); + PluginClassLoader getPluginClassLoader(String pluginId); - public List getExtensions(Class type); + List getExtensions(Class type); - public Set getExtensionClassNames(String pluginId); + Set getExtensionClassNames(String pluginId); - public ExtensionFactory getExtensionFactory(); + ExtensionFactory getExtensionFactory(); /** * The runtime mode. Must currently be either DEVELOPMENT or DEPLOYMENT. */ - public RuntimeMode getRuntimeMode(); + RuntimeMode getRuntimeMode(); /** * Retrieves the {@link PluginWrapper} that loaded the given class 'clazz'. */ - public PluginWrapper whichPlugin(Class clazz); + PluginWrapper whichPlugin(Class clazz); - public void addPluginStateListener(PluginStateListener listener); + void addPluginStateListener(PluginStateListener listener); - public void removePluginStateListener(PluginStateListener listener); + void removePluginStateListener(PluginStateListener listener); /** * Set the system version. This is used to compare against the plugin @@ -160,13 +160,13 @@ public interface PluginManager { * @default 0.0.0 * @param version */ - public void setSystemVersion(Version version); + void setSystemVersion(Version version); /** * Returns the system version. * * * @return the system version */ - public Version getSystemVersion(); + Version getSystemVersion(); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginRepository.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginRepository.java index 2bb0ba9..5db96b5 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginRepository.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginRepository.java @@ -31,7 +31,7 @@ public interface PluginRepository { * * @return a list of files */ - public List getPluginArchives(); + List getPluginArchives(); /** * Removes a plugin from the repository. @@ -39,6 +39,6 @@ public interface PluginRepository { * @param pluginPath the plugin path * @return true if deleted */ - public boolean deletePluginArchive(String pluginPath); + boolean deletePluginArchive(String pluginPath); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateListener.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateListener.java index 2bd6bd3..99e2fec 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateListener.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateListener.java @@ -27,6 +27,6 @@ public interface PluginStateListener extends EventListener { /** * Invoked when a plugin's state (for example DISABLED, STARTED) is changed. */ - public void pluginStateChanged(PluginStateEvent event); + void pluginStateChanged(PluginStateEvent event); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStatusProvider.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStatusProvider.java index 863cb8d..4943530 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStatusProvider.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStatusProvider.java @@ -27,7 +27,7 @@ public interface PluginStatusProvider { * @param pluginId the plugin id * @return if the plugin is disabled or not */ - public boolean isPluginDisabled(String pluginId); + boolean isPluginDisabled(String pluginId); /** * Disables a plugin from being loaded. @@ -35,7 +35,7 @@ public interface PluginStatusProvider { * @param pluginId * @return true if plugin is disabled */ - public boolean disablePlugin(String pluginId); + boolean disablePlugin(String pluginId); /** * Enables a plugin that has previously been disabled. @@ -43,6 +43,6 @@ public interface PluginStatusProvider { * @param pluginId * @return true if plugin is enabled */ - public boolean enablePlugin(String pluginId); + boolean enablePlugin(String pluginId); } -- 2.39.5