Skip to content

Commit 0e73625

Browse files
committed
Added the @throws and @see sections of the removeFirst, removeLast Javadoc comments.
1 parent 00cbfc7 commit 0e73625

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/net/danielhildebrandt/JArray.java

+10
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ else if(fromIndex > toIndex)
319319
* @param arr the array from which to remove one or more elements
320320
* @param emptyElem the element representing "nothing" in the array
321321
* @param removed the element to remove
322+
* @throws IllegalArgumentException if the array provided is empty
323+
* @throws IncompleteArrayException if the array removed from is not complete
324+
* @throws NullPointerException if the array provided is a null reference
325+
*
326+
* @see #isComplete(Object[], Object)
322327
*/
323328
public static final <E> E removeFirst(E[] arr, E emptyElem, E removed)
324329
{
@@ -353,6 +358,11 @@ public static final <E> E removeFirst(E[] arr, E emptyElem, E removed)
353358
* @param arr the array from which to remove one or more elements
354359
* @param emptyElem the element representing "nothing" in the array
355360
* @param removed the element to remove
361+
* @throws IllegalArgumentException if the array provided is empty
362+
* @throws IncompleteArrayException if the array removed from is not complete
363+
* @throws NullPointerException if the array provided is a null reference
364+
*
365+
* @see #isComplete(Object[], Object)
356366
*/
357367
public static final <E> E removeLast(E[] arr, E emptyElem, E removed)
358368
{

0 commit comments

Comments
 (0)