File tree 1 file changed +2
-2
lines changed
log.extension/src/main/java/org/apache/felix/log/extension
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public void start(BundleContext context) throws Exception {
31
31
try {
32
32
Class <? extends BundleActivator > activatorClass = context .getBundle ().loadClass ("org.apache.felix.log.Activator" ).asSubclass (BundleActivator .class );
33
33
34
- m_felixLogService = activatorClass .newInstance ();
34
+ m_felixLogService = activatorClass .getDeclaredConstructor (). newInstance ();
35
35
36
36
m_felixLogService .start (context );
37
37
}
@@ -42,7 +42,7 @@ public void start(BundleContext context) throws Exception {
42
42
try {
43
43
Class <? extends BundleActivator > activatorClass = context .getBundle ().loadClass ("org.apache.felix.logback.internal.Activator" ).asSubclass (BundleActivator .class );
44
44
45
- m_felixLogback = activatorClass .newInstance ();
45
+ m_felixLogback = activatorClass .getDeclaredConstructor (). newInstance ();
46
46
47
47
m_felixLogback .start (context );
48
48
}
You can’t perform that action at this time.
0 commit comments