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

Clean up naming of StringContent and FixedStringContent

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 17
    • tools
    • None

      It is suggested to rename as follows:

      FixedStringContent -> Text
      new FixedStringContent(String) -> Text.of(String)

      StringContent -> TextBuilder

      Also, most current uses of StringContent (specifically, those cases where it is immediately embedded in an enclosing tree node) can be replaced by FixedStringContent/Text. The primary exception is in ContentBuilder and HtmlTree, which provide `add(CharSequence)` methods, of which there are 157 usages.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: