RFR: 8087863: Mac: "Select All" within ListView/TreeView is handled differently depending on the useSystemMenuBar value [v3]

Kevin Rushforth kcr at openjdk.org
Wed Oct 9 15:27:09 UTC 2024


On Wed, 9 Oct 2024 15:06:42 GMT, Martin Fox <mfox at openjdk.org> wrote:

>> modules/javafx.graphics/src/main/java/javafx/scene/Scene.java line 2196:
>> 
>>> 2194:                 (sceneFocusOwner != null && sceneFocusOwner.getScene() == Scene.this) ? sceneFocusOwner : Scene.this;
>>> 2195: 
>>> 2196:         if (eventTarget == null) return false;
>> 
>> minor: insert braces?
>
> This single-line pattern is used throughout this file. I was under the impression that it was within the coding guidelines but can't seem to find a citation for that.

It is fine (and used all over the place).

OK:


    if (cond) return;

    if (cond) {
        return;
    }


NOT OK:


    if (cond)
        return;

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1528#discussion_r1793728132


More information about the openjfx-dev mailing list