Skip to content
Permalink
Browse files
[log.extension] remove deprecated usage
Signed-off-by: Raymond Augé <raymond.auge@liferay.com>
  • Loading branch information
rotty3000 committed Nov 29, 2021
1 parent 91df8d3 commit d51a4ffab396072336464b88ed6a1fa9a15d90b3
Showing 1 changed file with 2 additions and 2 deletions.
@@ -31,7 +31,7 @@ public void start(BundleContext context) throws Exception {
try {
Class<? extends BundleActivator> activatorClass = context.getBundle().loadClass("org.apache.felix.log.Activator").asSubclass(BundleActivator.class);

m_felixLogService = activatorClass.newInstance();
m_felixLogService = activatorClass.getDeclaredConstructor().newInstance();

m_felixLogService.start(context);
}
@@ -42,7 +42,7 @@ public void start(BundleContext context) throws Exception {
try {
Class<? extends BundleActivator> activatorClass = context.getBundle().loadClass("org.apache.felix.logback.internal.Activator").asSubclass(BundleActivator.class);

m_felixLogback = activatorClass.newInstance();
m_felixLogback = activatorClass.getDeclaredConstructor().newInstance();

m_felixLogback.start(context);
}

0 comments on commit d51a4ff

Please sign in to comment.