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

Matcher appendTail and appendReplacement should take CharSequence

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7
    • 5.0
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: