mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-30 12:50:11 +00:00
8349991: GraphUtils.java can use String.replace() instead of String.replaceAll()
Reviewed-by: mcimadamore
This commit is contained in:
parent
d422abc55a
commit
a3188e0406
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -251,9 +251,9 @@ public class GraphUtils {
|
||||
}
|
||||
|
||||
protected String formatProperties(Properties p) {
|
||||
return p.toString().replaceAll(",", " ")
|
||||
.replaceAll("\\{", "[")
|
||||
.replaceAll("\\}", "]");
|
||||
return p.toString().replace(',', ' ')
|
||||
.replace('{', '[')
|
||||
.replace('}', ']');
|
||||
}
|
||||
|
||||
protected static String wrap(String s) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user