Skip to content

Commit df36a09

Browse files
committed
PrefService: twiddle method order
1 parent e72ec27 commit df36a09

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/java/org/scijava/prefs/DefaultPrefService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ public void put(final Class<?> c, final String name,
154154
prefs(c).node(name).putList(value);
155155
}
156156

157+
@Override
158+
public void remove(final Class<?> c, final String name) {
159+
prefs(c).remove(name);
160+
}
161+
157162
@Override
158163
public void clear(final Class<?> c) {
159164
prefs(c).removeNode();
@@ -165,11 +170,6 @@ public void clearAll() {
165170
prefs(name).removeNode();
166171
}
167172

168-
@Override
169-
public void remove(final Class<?> c, final String name) {
170-
prefs(c).remove(name);
171-
}
172-
173173
// -- Deprecated methods --
174174

175175
@Deprecated

src/main/java/org/scijava/prefs/PrefService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ default String get(final Class<?> c, final String name) {
8181

8282
void put(Class<?> c, String name, Iterable<String> list);
8383

84+
/** Removes the node. */
85+
void remove(Class<?> c, String name);
86+
8487
void clear(Class<?> c);
8588

8689
/** Clears everything. */
8790
void clearAll();
8891

89-
/** Removes the node. */
90-
void remove(Class<?> c, String name);
91-
9292
// -- Deprecated methods --
9393

9494
/**

0 commit comments

Comments
 (0)