Skip to content

Commit 422959d

Browse files
author
Alex Klymenko
committed
refactor: update javadoc
1 parent c59cc05 commit 422959d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/thealgorithms/datastructures/dynamicarray/DynamicArray.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class DynamicArray<E> implements Iterable<E> {
2525
* Constructor with initial capacity.
2626
*
2727
* @param capacity the starting length of the desired array
28+
* @throws IllegalArgumentException if the specified capacity is negative
2829
*/
2930
public DynamicArray(final int capacity) {
3031
if (capacity < 0) {

0 commit comments

Comments
 (0)