reschke commented on code in PR #2158:
URL: https://github.com/apache/jackrabbit-oak/pull/2158#discussion_r1986719306
##########
oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/IterableUtils.java:
##########
@@ -408,4 +408,24 @@ public static <T> T getFirst(final Iterable<T> iterable,
final T defaultValue)
final Iterator<T> iterator = iterable.iterator();
return iterator.hasNext() ? iterator.next() : defaultValue;
}
+
+ /**
+ * Returns the element at the specified index in the specified iterable.
+ * <p>
+ * The iterable is traversed until the specified index is reached. If the
+ * position is greater than the number of elements in the iterable, an
+ * IndexOutOfBoundsException is thrown.
+ *
+ * @param <T> the type of elements in the iterable
+ * @param iterable the iterable to get the element from, may not be null
Review Comment:
```suggestion
* @param iterable the iterable to get the element from, must not be null
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]