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

Missing parentheses ")" in 1 line code sample

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 8
    • docs
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: