From a569bb576879fe64b99ff2c17bc8162ba99bb4d5 Mon Sep 17 00:00:00 2001 From: Nicholas DiPiazza Date: Fri, 11 Aug 2017 14:57:58 -0500 Subject: [PATCH] add some javadoc so people don't wonder if this will throw exception or return null. (#160) --- pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java index 2efd9f3..793784b 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java @@ -53,10 +53,10 @@ public interface PluginManager { List getStartedPlugins(); /** - * Retrieves the plugin with this id. + * Retrieves the plugin with this id, or null if the plugin does not exist. * - * @param pluginId - * @return the plugin + * @param pluginId The pluginId for the plugin you are trying to get. + * @return A PluginWrapper object for this plugin, or null if it does not exist. */ PluginWrapper getPlugin(String pluginId);