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

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

XMLWordPrintable

    • b12
    • Not verified

      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--

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

              Created:
              Updated:
              Resolved: