Skip to content

Commit 67f0f00

Browse files
committed
use StringBuilder
1 parent 28ef832 commit 67f0f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/perlonjava/runtime/RuntimeRegex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static String replaceNamedCharacters(String pattern) {
105105
// Compile a regex pattern to find \N{name} constructs
106106
Pattern namedCharPattern = Pattern.compile("\\\\N\\{([^}]+)\\}");
107107
Matcher matcher = namedCharPattern.matcher(pattern);
108-
StringBuffer result = new StringBuffer();
108+
StringBuilder result = new StringBuilder();
109109

110110
while (matcher.find()) {
111111
String name = matcher.group(1);

0 commit comments

Comments
 (0)