RFR: 8274898: Cleanup usages of StringBuffer in jdk tools modules
Сергей Цыпанов
github.com+10835776+stsypanov at openjdk.java.net
Fri Oct 8 19:42:07 UTC 2021
On Thu, 9 Sep 2021 06:53:13 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:
> StringBuffer is a legacy synchronized class. StringBuilder is a direct replacement to StringBuffer which generally have better performance
src/jdk.jpackage/share/classes/jdk/jpackage/internal/Log.java line 117:
> 115:
> 116: for (String s : strings) {
> 117: sb.append(" " + s);
Shouldn't it be `sb.append(" ").append(s)`?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5433
More information about the serviceability-dev
mailing list