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

Clean up naming of StringContent and FixedStringContent

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:
      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

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

                Dates

                Created:
                Updated:
                Resolved: