Skip to content

Commit 609bd35

Browse files
committed
PrefService: fix clear(Class)
Removing the entire node seems safer than using clear, which may possibly leave junk underneath this node.
1 parent 25ce153 commit 609bd35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void put(final Class<?> c, final String name,
156156

157157
@Override
158158
public void clear(final Class<?> c) {
159-
prefs(c).clear();
159+
prefs(c).removeNode();
160160
}
161161

162162
@Override

0 commit comments

Comments
 (0)