diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2022-06-30 00:57:30 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2022-06-30 00:57:30 +0300 |
commit | bd72a06e96388578380972e6161f298e0ea6b106 (patch) | |
tree | ab69a753e07640c91acfc4609e255f4c051eee39 | |
parent | aa07dfd91e82c90b8cc0d6b0ab6f2ae56c077f05 (diff) | |
download | pf4j-bd72a06e96388578380972e6161f298e0ea6b106.tar.gz pf4j-bd72a06e96388578380972e6161f298e0ea6b106.zip |
Improve code quality (sonar hints)
-rw-r--r-- | demo/app/src/main/java/org/pf4j/demo/Boot.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demo/app/src/main/java/org/pf4j/demo/Boot.java b/demo/app/src/main/java/org/pf4j/demo/Boot.java index dfbc2ed..05d30bf 100644 --- a/demo/app/src/main/java/org/pf4j/demo/Boot.java +++ b/demo/app/src/main/java/org/pf4j/demo/Boot.java @@ -96,7 +96,7 @@ public class Boot { // print extensions instances from classpath (non plugin) log.info("Extensions instances added by classpath:"); - List extensions = pluginManager.getExtensions((String) null); + List<?> extensions = pluginManager.getExtensions((String) null); for (Object extension : extensions) { log.info(" {}", extension); } @@ -134,6 +134,7 @@ public class Boot { private static PluginManager createPluginManager() { return new DefaultPluginManager() { + @Override protected ExtensionFinder createExtensionFinder() { DefaultExtensionFinder extensionFinder = (DefaultExtensionFinder) super.createExtensionFinder(); extensionFinder.addServiceProviderExtensionFinder(); // to activate "HowdyGreeting" extension |