Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6964

Do not allocate when escaping empty string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 9.8.0
    • 10.0.0-M1, 9.9.0
    • wicket-core
    • None

    Description

      While debugging another issue, I noticed that escaping the markup for an empty string unnecessarily allocates a new AppendingStringBuffer. We should simply return the empty string instead.

      Attachments

        Issue Links

          Activity

            People

              thomas.heigl Thomas Heigl
              thomas.heigl Thomas Heigl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: