<Swing Dev> RFR: 8049301: Suspicious use of string identity checks in JComponent.setUIProperty [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Jul 30 15:43:32 UTC 2021


On Fri, 30 Jul 2021 15:17:41 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> I have taken care of NPE..I am not sure of switch which probably might be a hindrance in backporting if needed to earlier release trains.
>> CI is also run..link in JBS.
>
>> I am not sure of switch which probably might be a hindrance in backporting if needed to earlier release trains.
> 
> You still can use the old switch statement with breaks.

It will not be consistent if we use switch only in this place because in most places, we either use the way we have before fix or or what I have done in version 1 or what I have done now. Probably, we need a PR to change other places where we have use pre-fix ways.

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

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


More information about the swing-dev mailing list