On Thu, 22 Jun 2023 20:27:44 GMT, Alexey Ivanov <[email protected]> wrote:

>> It can be removed in the strict sense but we need something to initialise it 
>> to so kept it as it is, as it will do no harm
>
>> It can be removed in the strict sense but we need something to initialise it 
>> to so kept it as it is, as it will do no harm
> 
> Why does it need anything to initialise? The value is now set in either `if` 
> or `else` branch.
> 
> It does not harm, yet it's never used. Not initialising it with 
> `"InternalFrame.titleButtonWidth"` conveys it clearer: the value is computed 
> later.

ok. I thought buttonWidth was declared in the method but it is class variable

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14555#discussion_r1239283097

Reply via email to