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

Clean up naming of StringContent and FixedStringContent

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: