mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-18 11:49:09 +00:00
use Class object instead of class name to create service tracker
Change-Id: I3ed24acc8547391111e6397f80c5d750efbdf68f
This commit is contained in:
+1
-1
@@ -3327,7 +3327,7 @@ public class RacingEventServiceImpl implements RacingEventService, ClearStateTes
|
||||
result = Collections.singleton((WindTrackerFactory) ExpeditionWindTrackerFactory.getInstance());
|
||||
} else {
|
||||
ServiceTracker<WindTrackerFactory, WindTrackerFactory> tracker = new ServiceTracker<WindTrackerFactory, WindTrackerFactory>(
|
||||
bundleContext, WindTrackerFactory.class.getName(), null);
|
||||
bundleContext, WindTrackerFactory.class, null);
|
||||
tracker.open();
|
||||
result = new HashSet<>();
|
||||
for (WindTrackerFactory factory : tracker.getServices(new WindTrackerFactory[0])) {
|
||||
|
||||
Reference in New Issue
Block a user