Skip to content

Commit a3188e0

Browse files
committed
8349991: GraphUtils.java can use String.replace() instead of String.replaceAll()
Reviewed-by: mcimadamore
1 parent d422abc commit a3188e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/util/GraphUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -251,9 +251,9 @@ public void visitNode(N node, StringBuilder buf) {
251251
}
252252

253253
protected String formatProperties(Properties p) {
254-
return p.toString().replaceAll(",", " ")
255-
.replaceAll("\\{", "[")
256-
.replaceAll("\\}", "]");
254+
return p.toString().replace(',', ' ')
255+
.replace('{', '[')
256+
.replace('}', ']');
257257
}
258258

259259
protected static String wrap(String s) {

0 commit comments

Comments
 (0)