mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-08 20:12:23 +00:00
Bug 4960: replaced lambdas by constructor references
This commit is contained in:
1 parent
e234ca5be5
commit
e36006acdd
2 files changed
+3
-3
No files matched your search
@@ -154,7 +154,7 @@ public class Activator implements BundleActivator {
|
||||
properties));
|
||||
properties.put(PreferenceConverter.KEY_PARAMETER_NAME, StoredDataMiningQueryPreferences.PREF_NAME);
|
||||
registrations.add(context.registerService(PreferenceConverter.class,
|
||||
new GenericJSONPreferenceConverter<>(() -> new StoredDataMiningQueryPreferences()), properties));
|
||||
new GenericJSONPreferenceConverter<>(StoredDataMiningQueryPreferences::new), properties));
|
||||
properties.put(PreferenceConverter.KEY_PARAMETER_NAME, SailorProfilePreferences.PREF_NAME);
|
||||
registrations.add(context.registerService(PreferenceConverter.class,
|
||||
new GenericJSONPreferenceConverter<>(
|
||||
@@ -162,7 +162,7 @@ public class Activator implements BundleActivator {
|
||||
properties));
|
||||
properties.put(PreferenceConverter.KEY_PARAMETER_NAME, TrackedEventPreferences.PREF_NAME);
|
||||
registrations.add(context.registerService(PreferenceConverter.class,
|
||||
new GenericJSONPreferenceConverter<>(() -> new TrackedEventPreferences()), properties));
|
||||
new GenericJSONPreferenceConverter<>(TrackedEventPreferences::new), properties));
|
||||
}
|
||||
|
||||
public static BundleContext getContext() {
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ public class TrackedEventPreferences extends AbstractGenericSerializableSettings
|
||||
|
||||
@Override
|
||||
protected void addChildSettings() {
|
||||
trackedEvents = new SettingsList<>("trackedEvents", this, () -> new TrackedEventPreference());
|
||||
trackedEvents = new SettingsList<>("trackedEvents", this, TrackedEventPreference::new);
|
||||
}
|
||||
|
||||
public Iterable<TrackedEventPreference> getTrackedEvents() {
|
||||
|
||||
Reference in new issue
Block a user