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

Reduce enum values of HtmlLinkInfo.Kind

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • None
    • tools
    • None
    • b07
    • generic
    • generic

      There are currently 30+ enum values in jdk.javadoc.internal.doclets.formats.html.HtmlLinkInfo.Kind to determine the format of a link to a documented element in JavaDoc. The constant names are very specific, but their use in 100+ places in the code sometimes do not match the name. What's more, the actual format for a link is determined in ways that are sometimes hard to understand and depend on other conditions.

      The goal of this task is to reduce the number of constants in HtmlLinkInfo.Kind to the minimum and simplify the code to determine the format of a generated link.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: