-
Enhancement
-
Resolution: Duplicate
-
P4
-
5.0
-
x86
-
windows_xp
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.
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.
- duplicates
-
JDK-6485981 Enhancement for methods in Matcher
-
- Closed
-
-
JDK-5066679 java.util.regex.Matcher should make more use of Appendable
-
- Open
-