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

Clean up java.lang.ref comments and documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • core-libs
    • b16

      There's one typo in an inline comment and overlinking in a doc comment. See the linked PR for details.

      From "How to Write Doc Comments for the Javadoc Tool":
      """
      Use in-line links economically
      You are encouraged to add links for API names (listed immediately above) using the {@link} tag. It is not necessary to add links for all API names in a doc comment. Because links call attention to themselves (by their color and underline in HTML, and by their length in source code doc comments), it can make the comments more difficult to read if used profusely. We therefore recommend adding a link to an API name if:

      The user might actually want to click on it for more information (in your judgment), and
      Only for the first occurrence of each API name in the doc comment (don't bother repeating a link)
      Our audience is advanced (not novice) programmers, so it is generally not necessary to link to API in the java.lang package (such as String), or other API you feel would be well-known."""

            prappo Pavel Rappo (Inactive)
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: