fixed the constructor.

empirephoenix-patch-1
javasabr 7 years ago committed by Rémy Bouquet
parent 69b7f7e655
commit 06599d1eac
  1. 8
      jme3-core/src/main/java/com/jme3/util/SafeArrayList.java

@ -99,13 +99,7 @@ public class SafeArrayList<E> implements List<E>, Cloneable {
public SafeArrayList(final Class<E> elementType, final Collection<? extends E> collection) {
this.elementType = elementType;
if (collection instanceof SafeArrayList) {
this.buffer = Arrays.asList(((SafeArrayList<E>) collection).getArray());
} else {
this.buffer = new ArrayList<>(collection);
}
this.buffer = new ArrayList<>(collection);
this.size = buffer.size();
}

Loading…
Cancel
Save