Content.addContent(String) should use CharSequence

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • 9
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: