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

Typo in Collections.addAll method javadoc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17, 18
    • Fix Version/s: 19
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      The Collections.addAll method javadoc currently states:
      /**
           * Adds all of the specified elements to the specified collection.
           * Elements to be added may be specified individually or as an array.
           * The behaviour of this convenience method is similar to that of
           * {@code cc.addAll(Collections.unmodifiableList(Arrays.asList(elements)))}.

      ...

      It seems that the "cc" in that line should instead have been "c" since the param passed to this method is named "c" and the rest of the API specification in this javadoc uses "c".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpai Jaikiran Pai
              Reporter:
              jpai Jaikiran Pai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: