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

Content.addContent(String) should use CharSequence

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:

      Description

      Internally, javadoc uses "Content" as the root node in a family of types to model HTML trees. This class has a method addContent(String).

      It should be changed to be addContent(CharSequence). This will impact all overrides, which will need to be updated as well.

      The change will allow us to pass javax.lang.model.element.Name objects down to this API, avoiding a needless temporary conversion to String.


      Also include StringContent(String) constructor -- that should use CharSequence as well.

        Attachments

          Activity

            People

            Assignee:
            ksrini Kumar Srinivasan
            Reporter:
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: