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

Matcher appendTail and appendReplacement should take CharSequence

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:

      Description

      A DESCRIPTION OF THE REQUEST :
      appendTail and appendReplacement currently take StringBuffer as arguments and the better performing StringBuilder cannot be used.

      JUSTIFICATION :
      JDK1.5 adds the more performance-oriented StringBuilder. Matcher will not work with StringBuilder however. If appendTail and appendReplacement took CharSequence then either StringBuffer or StringBuilder could be used as arguments.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                jssunw Jitender S (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: