Skip to content

Commit 76002b5

Browse files
committed
Use String.replace instead of String.replaceAll
1 parent fc3f112 commit 76002b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/nats/json/JsonWriteUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static StringBuilder beginFormattedJson() {
7575
public static String endFormattedJson(StringBuilder sb) {
7676
sb.setLength(sb.length()-1);
7777
sb.append("\n}");
78-
return sb.toString().replaceAll(",", ",\n ");
78+
return sb.toString().replace(",", ",\n ");
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)