On Wed, 19 Nov 2025 16:27:06 GMT, Maurizio Cimadamore <[email protected]> 
wrote:

>> This PR proposes to implement minor comments from the original integration 
>> of "Implement JEP 528: Lazy Constants (second preview)" 
>> (https://bugs.openjdk.org/browse/JDK-8366178).
>
> src/java.base/share/classes/java/lang/LazyConstant.java line 245:
> 
>> 243: 
>> 244:     /**
>> 245:      * {@return if this lazy constant is the same instance as the 
>> provided {@code obj}}
> 
> Suggestion:
> 
>      * {@return {@code true} if this lazy constant is the same instance as 
> the provided {@code obj}}

Yes. This is JDK style. Personally, I like the shorter version better but will 
change.

If we do the change, the sentence does not say what is returned if they are not 
the same instance for example.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28388#discussion_r2544968211

Reply via email to