Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4239778

LinkedList.getFirst() throws NoSuchElementException but it's not documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.1, 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: dbT83986 Date: 05/19/99


      The JavaDoc comment for LinkedList.getFirst() should say
      "@exception NoSuchElementException if the list is empty."
      since this is what getFirst() does, but this comment is missing
      so the documentation doesn't mention the exception.
      (Review ID: 83282)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: