RFR [8014066] Mistake in documentation of ArrayList#removeRange (original) (raw)
Ivan Gerasimov ivan.gerasimov at oracle.com
Thu Mar 13 15:29:42 UTC 2014
- Previous message: Accessing type annotations at runtime
- Next message: RFR [8014066] Mistake in documentation of ArrayList#removeRange
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello!
Would you please review a simple fix of the javadoc for ArrayList#removeRange() method?
The doc says that IndexOutOfBoundsException is thrown if fromIndex or toIndex is out of range (fromIndex < 0 || fromIndex >= size() || toIndex
size() || toIndex < fromIndex).
The condition 'fromIndex >= size()' isn't true and should be removed from the doc.
For example, the code list.removeRange(size(), size()) does not throw any exception.
BUGURL: https://bugs.openjdk.java.net/browse/JDK-8014066 WEBREV: http://cr.openjdk.java.net/~igerasim/8014066/0/webrev/
Sincerely yours, Ivan
- Previous message: Accessing type annotations at runtime
- Next message: RFR [8014066] Mistake in documentation of ArrayList#removeRange
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]