[OpenJDK 2D-Dev] RFR: 8264428: Replace uses of StringBuffer with StringBuilder in java.desktop [v2]

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Tue Mar 30 19:05:38 UTC 2021


On Tue, 30 Mar 2021 18:31:34 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

>> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   [PATCH] Replace uses of StringBuffer with StringBuilder in java.desktop
>
> src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFFieldNode.java line 127:
> 
>> 125:                 StringBuilder sb = new StringBuilder();
>> 126:                 for (int i = 0; i < count; i++) {
>> 127:                     sb.append((data[i] & 0xff));
> 
> Remove redundant parentheses

fixed.
It's suspicious that IDEA wasn't able to remove them by itself. Reported https://youtrack.jetbrains.com/issue/IDEA-265548

-------------

PR: https://git.openjdk.java.net/jdk/pull/3251


More information about the 2d-dev mailing list