On Fri, 2 Aug 2024 21:24:21 GMT, John Hendrikx <jhendr...@openjdk.org> wrote:
>> Michael Strauß has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - fix since tag >> - adjust table styling > > modules/javafx.graphics/src/main/java/com/sun/javafx/util/Utils.java line 311: > >> 309: } >> 310: } >> 311: } > > You could write this without nesting using `switch`: > > > switch(listSize) { > case 8: newArray[7] = item7; // fallthrough > case 7: newArray[6] = item6; > case 6: newArray[5] = item5; > // etc > } +1 ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1522#discussion_r1705962174