[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8301302: Platform preferences API
From:       Michael =?UTF-8?B?U3RyYXXDnw==?= <mstrauss () openjdk ! org>
Date:       2023-01-29 17:10:27
Message-ID: BMLMhnqNxyq95HsPQt9eQhX-Grq2DmJA4pw5gzp2wsQ=.a1acccb3-8718-4028-a57d-92402624566d () github ! com
[Download RAW message or body]

On Sun, 29 Jan 2023 14:31:39 GMT, John Hendrikx <jhendrikx@openjdk.org> wrote:

> Just commenting on the convenience API part. I think in modern Java you'd use \
> `Optional` to avoid creating multiple methods for each type (`Optional` supports \
> far more options as "fallback") and to avoid having to return `null` as a special \
> value.

That's a good suggestion, I've updated the API accordingly.

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

PR: https://git.openjdk.org/jfx/pull/1014


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic