Skip to content

Commit 7d4f21d

Browse files
committed
PrefService: do not limit lists to 1000 items
There was no reason for that hard-coded (and silent) limit.
1 parent 15907ae commit 7d4f21d

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
@@ -470,7 +470,7 @@ public void putList(final List<String> list) {
470470

471471
public List<String> getList() {
472472
final List<String> list = new ArrayList<>();
473-
for (int index = 0; index < 1000; index++) {
473+
for (int index = 0; index < Integer.MAX_VALUE; index++) {
474474
final String value = get("" + index);
475475
if (value == null) {
476476
break;

0 commit comments

Comments
 (0)