@@ -170,7 +170,7 @@ public class ModUpdatesPage extends BorderPane implements DecoratorPage {
|
|||||||
csvTable.write(Files.newOutputStream(path));
|
csvTable.write(Files.newOutputStream(path));
|
||||||
|
|
||||||
FXUtils.showFileInExplorer(path);
|
FXUtils.showFileInExplorer(path);
|
||||||
}).whenComplete(exception -> {
|
}).whenComplete(Schedulers.javafx() ,exception -> {
|
||||||
if (exception == null) {
|
if (exception == null) {
|
||||||
Controllers.dialog(path.toString(), i18n("message.success"));
|
Controllers.dialog(path.toString(), i18n("message.success"));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -91,11 +91,10 @@ public final class InfiniteSizeList<T> extends ArrayList<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
T previous = super.get(index);
|
T previous = super.get(index);
|
||||||
|
super.set(index, element);
|
||||||
if (previous != null) { // !null -> !null
|
if (previous != null) { // !null -> !null
|
||||||
super.set(index, element);
|
|
||||||
return previous;
|
return previous;
|
||||||
} else { // null -> !null
|
} else { // null -> !null
|
||||||
super.set(index, element);
|
|
||||||
if (index >= this.actualSize) {
|
if (index >= this.actualSize) {
|
||||||
this.actualSize = index + 1;
|
this.actualSize = index + 1;
|
||||||
}
|
}
|
||||||
@@ -104,8 +103,9 @@ public final class InfiniteSizeList<T> extends ArrayList<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
private void allocate0(int index) {
|
private void allocate0(int index) {
|
||||||
super.ensureCapacity(index + 1);
|
this.addAll(Lang.immutableListOf((T[])new Object[index + 1 - super.size()]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user