Integrated: 8274525: Replace uses of StringBuffer with StringBuilder in java.xml
Andrey Turbanov
github.com+741251+turbanoff at openjdk.java.net
Wed Oct 6 18:23:12 UTC 2021
On Wed, 29 Sep 2021 17:56:49 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:
> StringBuffer is a legacy synchronized class. There are more modern alternatives which perform better:
> 1. Plain String concatenation should be preferred
> 2. StringBuilder is a direct replacement to StringBuffer which generally have better performance
>
> Similar cleanups:
> 1. [JDK-8264029](https://bugs.openjdk.java.net/browse/JDK-8264029) java.base
> 2. [JDK-8264428](https://bugs.openjdk.java.net/browse/JDK-8264428) java.desktop
> 3. [JDK-8264484](https://bugs.openjdk.java.net/browse/JDK-8264484) jdk.hotspot.agent
This pull request has now been integrated.
Changeset: 754bc82c
Author: Andrey Turbanov <turbanoff at gmail.com>
Committer: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/754bc82c4c03e1bedb4b36b5c52873b0a78a6ceb
Stats: 32 lines in 5 files changed: 0 ins; 11 del; 21 mod
8274525: Replace uses of StringBuffer with StringBuilder in java.xml
Reviewed-by: joehw, iris, naoto, dfuchs
-------------
PR: https://git.openjdk.java.net/jdk/pull/5759
More information about the core-libs-dev
mailing list