On Thu, 26 Oct 2023 01:51:52 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

>> Florian Kirmaier has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   JDK-8316518
>>   small change based on codereview
>
> modules/javafx.graphics/src/main/java/javafx/print/Paper.java line 85:
> 
>> 83:             case MM    : return (dim * 72) / 25.4;
>> 84:         }
>> 85:         return dim;
> 
> Minor: you can use an enhanced `switch` expression here, which also ensures 
> exhaustiveness:
> 
> return switch (units) {
>     case POINT -> dim;
>     case INCH -> dim * 72;
>     case MM -> (dim * 72) / 25.4;
> };

done

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1244#discussion_r1377475424

Reply via email to