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

Content.addContent(String) should use CharSequence

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • None
    • tools

      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.

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

              Created:
              Updated:
              Resolved: