Commit 64bf8cdb authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix list updates

parent e3eeb003
......@@ -149,10 +149,11 @@ public class Util {
List<T> newItems = new ArrayList<>();
outer:
for (T newItem : items) {
for (T oldItem : dataset) {
for (int i = 0; i < dataset.size(); ++i) {
T oldItem = dataset.get(i);
if (newItem.equals(oldItem)) {
//noinspection UnusedAssignment
oldItem = newItem;
dataset.set(i, newItem);
continue outer;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment