Skip to content

Commit 5fb1ca5

Browse files
committed
PrefService: deprecate SmartPrefs#clear(String)
This internal method is now only called by other deprecated methods.
1 parent 8bfefe4 commit 5fb1ca5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,6 @@ public SmartPrefs(final java.util.prefs.Preferences p,
305305

306306
// -- SmartPrefs methods --
307307

308-
public void clear(final String key) {
309-
if (nodeExists(key)) node(key).clear();
310-
}
311-
312308
public void remove(final String key) {
313309
if (nodeExists(key)) node(key).removeNode();
314310
}
@@ -545,6 +541,10 @@ private String makeSafe(final String s, final int max) {
545541
return "..." + s.substring(len - max + 3, len);
546542
}
547543

544+
@Deprecated
545+
public void clear(final String key) {
546+
if (nodeExists(key)) node(key).clear();
547+
}
548548
}
549549

550550
}

0 commit comments

Comments
 (0)