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

Missing parentheses ")" in 1 line code sample

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: docs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      Simple 1 line code example on the documentation is missing the closing parentheses ")" near the end

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      List<Type> list = new ArrayList<Type>(Collections.nCopies(1000, (Type)null));
      ACTUAL -

      List<Type> list = new ArrayList<Type>(Collections.nCopies(1000, (Type)null);

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/tutorial/collections/implementations/convenience.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bhoran Bernard Horan
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: