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

Typo in java.net.JarURLConnection.getCertificates() method documentation

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • Verification:
      Not verified

      Description

      A DESCRIPTION OF THE PROBLEM :
      In java.net.JarURLConnection.getCertificates() method documentation, the following sentence:
        "Return the Certificate object for this connection if the URL for it points to a JAR file entry, null otherwise."
       should be replaced by:
        "Return*s* the Certificate object*s* for this connection if the URL for it points to a JAR file entry, null otherwise.",
      because this method returns an array of certificates and not only one certificate.

      [ pluralize "Return" and "object" ]

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/8/docs/api/java/net/JarURLConnection.html#getCertificates--

        Attachments

          Activity

            People

            Assignee:
            chegar Chris Hegarty
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: