This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b50cf0  FELIX-6370 : Provide a User interface for checks within 
plugins
5b50cf0 is described below

commit 5b50cf0876bd85c62949f0607280af08b52248d2
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Sat Dec 12 14:42:20 2020 +0100

    FELIX-6370 : Provide a User interface for checks within plugins
---
 .../org/apache/felix/webconsole/internal/servlet/OsgiManager.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
 
b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
index 548f53e..9a3569e 100644
--- 
a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
+++ 
b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
@@ -278,8 +278,8 @@ public class OsgiManager extends GenericServlet
 
             try
             {
-                Class<?> pluginClass = classLoader.loadClass(pluginClassName);
-                Object plugin = 
pluginClass.getDeclaredConstructor(null).newInstance(null);
+                final Class<?> pluginClass = 
classLoader.loadClass(pluginClassName);
+                final Object plugin = 
pluginClass.getDeclaredConstructor().newInstance();
 
                 if (plugin instanceof OsgiManagerPlugin)
                 {

Reply via email to