diff --git a/modules/javafx.graphics/src/main/java/javafx/geometry/Point3D.java b/modules/javafx.graphics/src/main/java/javafx/geometry/Point3D.java index 8b539d4f307..a6f0e362198 100644 --- a/modules/javafx.graphics/src/main/java/javafx/geometry/Point3D.java +++ b/modules/javafx.graphics/src/main/java/javafx/geometry/Point3D.java @@ -410,10 +410,15 @@ public Point3D interpolate(Point3D endValue, double t) { } /** - * Returns a hash code value for the point. - * @return a hash code value for the point. + * Indicates whether some other object is "equal to" this one. + * Two instances of {@code 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 {@code true} if this {@code Point3D} is the same as the {@code obj} argument; {@code false} otherwise */ - @Override public boolean equals(Object obj) { + @Override + public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof Point3D) { Point3D other = (Point3D) obj;