Merge pull request #334 from charlag/paired-list-fix

Fix bug with paired list incorrectly adding to the specified position.
This commit is contained in:
Vavassor 2017-07-14 16:03:36 -04:00 committed by GitHub
commit d87227ed72

View File

@ -68,7 +68,7 @@ public final class PairedList<T, V> extends AbstractList<T> {
@Override @Override
public void add(int index, T element) { public void add(int index, T element) {
synced.add(index, mapper.apply(element)); synced.add(index, mapper.apply(element));
main.add(element); main.add(index, element);
} }
@Override @Override