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

Missing parentheses ")" in 1 line code sample

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8
    • docs
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved: