This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
GapList has several methods to add new elements. More specific methods are needed to; add a collection from an offset, add an array without specifying an offset.
The following methods are added to GapList on branch editor_multi_caret. Please review the API change, thanks! boolean addArray(Object[] elements) boolean addAll(int index, Collection<? extends E> c, int off, int len) boolean addAll(Collection<? extends E> c, int off, int len) http://hg.netbeans.org/jet-main/file/2ae266d79b40/editor.util/src/org/netbeans/lib/editor/util/GapList.java
(In reply to Ralph Ruijs from comment #1) > The following methods are added to GapList on branch editor_multi_caret. > Please review the API change, thanks! > > boolean addAll(Collection<? extends E> c, int off, int len) this method doesn't have "index" parameter, so javadoc line looks confusing: @throws IndexOutOfBoundsException if index out of range <tt>(index < 0 || index > size())</tt>.
Thanks Vladimir, I've fixed the javadoc.
Thanks for the review.