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

Do not allocate when escaping empty string

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment