java binding: remove unnecessary collection wrapper

This commit is contained in:
Iuri Sitinschi 2018-04-29 12:20:07 +02:00
parent 9043911f2b
commit 97360e77af
1 changed files with 2 additions and 2 deletions

View File

@ -73,12 +73,12 @@ public class Tuple implements Comparable<Tuple>, Iterable<Object> {
private List<Object> elements;
private Tuple(List<? extends Object> elements, Object newItem) {
this(new LinkedList<Object>(elements));
this(elements);
this.elements.add(newItem);
}
private Tuple(List<? extends Object> elements) {
this.elements = new ArrayList<Object>(elements);
this.elements = new ArrayList<>(elements);
}
/**