RFR: 8332895: Support interpolation for backgrounds and borders [v3]

Andy Goryachev angorya at openjdk.org
Tue Aug 6 18:39:38 UTC 2024


On Fri, 2 Aug 2024 21:24:21 GMT, John Hendrikx <jhendrikx at 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


More information about the openjfx-dev mailing list