Skip to content

Commit 40754f1

Browse files
committedFeb 10, 2021
4841153: java.awt.geom.Rectangle2D.add(double,double) documented incorrectly
Reviewed-by: prr
1 parent 4caeb39 commit 40754f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/java.desktop/share/classes/java/awt/geom/Rectangle2D.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ public static void union(Rectangle2D src1,
794794
* {@code true}. The {@code contains} method does not
795795
* return {@code true} for points on the right or bottom
796796
* edges of a rectangle. Therefore, if the added point falls on
797-
* the left or bottom edge of the enlarged rectangle,
797+
* the right or bottom edge of the enlarged rectangle,
798798
* {@code contains} returns {@code false} for that point.
799799
* @param newx the X coordinate of the new point
800800
* @param newy the Y coordinate of the new point
@@ -820,7 +820,7 @@ public void add(double newx, double newy) {
820820
* {@code true}. The {@code contains}
821821
* method does not return {@code true} for points on the right
822822
* or bottom edges of a rectangle. Therefore, if the added point falls
823-
* on the left or bottom edge of the enlarged rectangle,
823+
* on the right or bottom edge of the enlarged rectangle,
824824
* {@code contains} returns {@code false} for that point.
825825
* @param pt the new {@code Point2D} to add to this
826826
* {@code Rectangle2D}.

0 commit comments

Comments
 (0)
Please sign in to comment.