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

Simplify/standardize method naming for HtmlTree

    XMLWordPrintable

Details

    Backports

      Description

        An HtmlTree contains a map for attributes and a list of content.

        The current naming uses "addAttr" to put an attribute into the map, and "addContent" to add to the list of content.

        It would make sense to the method names to "put" for attributes and just "add" for content. This would also make client code more concise, especially when using a fluent coding style.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: