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

Douglas Held duke at openjdk.org
Fri Oct 14 15:00:14 UTC 2022


On Thu, 13 Oct 2022 14:13:27 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

>> The JavaDoc for equals had a copy/paste error. I normalized the text based on the JavaDoc for method java.awt.Point#equals. I also changed formatting in the method signatures of equals(), hashCode() and toString().
>> 
>> For good measure, some kind of copy/paste detection should probably be added to the many automated checks. For the entire OpenJDK project.
>
> modules/javafx.graphics/src/main/java/javafx/geometry/Point3D.java line 413:
> 
>> 411: 
>> 412:     /**
>> 413:      * Determines whether or not two objects are equal. Two instances of {@code Point3D}
> 
> Since this object is known, I would start with "Determines if this point is equals to a given object".

Agree. I propose the very similar wording "Determines whether this Point3D is equal to a given object."

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

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


More information about the openjfx-dev mailing list