RFR: JDK-8295236: Update JavaDoc in javafx.geometry.Point3D [v4]

Douglas Held duke at openjdk.org
Tue Oct 18 22:22:15 UTC 2022


On Tue, 18 Oct 2022 11:32:04 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

>> Agreed, mentioning equality criteria sounds good to me too. How does this look ?
>> 
>> 
>>     /**
>>      * Indicates whether some other object is "equal to" this one.
>>      * Two instances of Point3D are equal if the return values of their
>>      * {@code getX}, {@code getY}, and {@code getZ} methods are equal.
>>      *
>>      * @param obj the reference object with which to compare
>>      * @return true if this Point3D is the same as the obj argument; false otherwise
>>      */
>
> This is the current proposal by Douglas and align with `Object::equals` which it is overriding. I'm fine with this wording. Just need to add the `@code` tags.

I have added a commit to match the proposed block by arapte.

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

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


More information about the openjfx-dev mailing list