RFR: 8274680: Remove unnecessary conversion to String in java.desktop [v2]

Sergey Bylokhov serb at openjdk.java.net
Tue Oct 5 07:31:11 UTC 2021


On Mon, 4 Oct 2021 09:05:30 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

>> Cleanup unnecessary String.valueOf calls (and similar) when conversion will happen implicitly anyway
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8274680: Remove unnecessary conversion to String in java.desktop
>   update copyright year

src/java.desktop/share/classes/sun/java2d/marlin/RendererContext.java line 52:

> 50:     static RendererContext createContext() {
> 51:         return new RendererContext("ctx"
> 52:                        + CTX_COUNT.getAndIncrement());

can be moved one line up

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

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



More information about the client-libs-dev mailing list