Name: yyT116575 Date: 02/23/2001
Unable to get this to work. It appears to 1.3.0 and 1.2.2
The LinkedList class' JavaDoc is inconsistent. For many methods,
it states that NoSuchElementException is thrown if the list is empty.
However, this is not mentioned on getFirst(). A look at the
getFirst() source code shows that this exception is indeed thrown.
Please add this exception to the JavaDoc for this method.
(Review ID: 117580)
======================================================================
- duplicates
-
JDK-4239778 LinkedList.getFirst() throws NoSuchElementException but it's not documented
-
- Resolved
-