Skip to content

Commit

Permalink
Perform clean code of bundles/org.eclipse.equinox.preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipse-equinox-bot authored and laeubi committed Jan 29, 2025
1 parent 6c238bc commit 15aebcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public class OSGiPreferencesServiceImpl implements PreferencesService {
private static final class OSGiLocalRootPreferences implements Preferences {

// The "local" root of this preference tree (not the real Eclipse root)
private Preferences root;
private final Preferences root;

// the node this node is wrappering
private Preferences wrapped;
private final Preferences wrapped;

private OSGiLocalRootPreferences(Preferences root) {
this(root, root);
Expand Down Expand Up @@ -252,7 +252,7 @@ public void sync() throws BackingStoreException {

} // end static inner class OSGiLocalRootPreferences

private IEclipsePreferences bundlePreferences;
private final IEclipsePreferences bundlePreferences;

OSGiPreferencesServiceImpl(IEclipsePreferences bundlePreferences) {
this.bundlePreferences = bundlePreferences;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public final class NodeChangeEvent extends EventObject {
*/
private static final long serialVersionUID = 1L;

private Preferences child;
private final Preferences child;

/**
* Constructor for a new node change event object.
Expand Down Expand Up @@ -127,9 +127,9 @@ public final class PreferenceChangeEvent extends EventObject {
*/
private static final long serialVersionUID = 1L;

private String key;
private Object newValue;
private Object oldValue;
private final String key;
private final Object newValue;
private final Object oldValue;

/**
* Constructor for a new preference change event. The node and the key must not
Expand Down

0 comments on commit 15aebcf

Please sign in to comment.