On Wed, 19 Aug 2026 14:10:42 GMT, Chen Liang <[email protected]> wrote:

>> src/jdk.incubator.json/share/classes/jdk/incubator/json/impl/JsonObjectImpl.java
>>  line 66:
>> 
>>> 64:         Objects.requireNonNull(name);
>>> 65:         return switch (theMembers.get(name)) {
>>> 66:             case JsonValue jv -> jv;
>> 
>> An enhanced switch with pattern matching is convenient and easy to read but 
>> adds to startup time. Did we do this trade-off analysis?
>
> I don't think avoidance of lambda or startup time is a focus of this library.

Yes, at least for this incubation period

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32282#discussion_r3814591301

Reply via email to