Skip to content
Permalink
Browse files
4841153: java.awt.geom.Rectangle2D.add(double,double) documented inco…
…rrectly

Reviewed-by: prr
  • Loading branch information
prsadhuk committed Feb 10, 2021
1 parent 4caeb39 commit 40754f12f768ed1b32cbda187b0f43e9ee25c5c9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.desktop/share/classes/java/awt/geom/Rectangle2D.java
@@ -794,7 +794,7 @@ public static void union(Rectangle2D src1,
* {@code true}. The {@code contains} method does not
* return {@code true} for points on the right or bottom
* edges of a rectangle. Therefore, if the added point falls on
* the left or bottom edge of the enlarged rectangle,
* the right or bottom edge of the enlarged rectangle,
* {@code contains} returns {@code false} for that point.
* @param newx the X coordinate of the new point
* @param newy the Y coordinate of the new point
@@ -820,7 +820,7 @@ public void add(double newx, double newy) {
* {@code true}. The {@code contains}
* method does not return {@code true} for points on the right
* or bottom edges of a rectangle. Therefore, if the added point falls
* on the left or bottom edge of the enlarged rectangle,
* on the right or bottom edge of the enlarged rectangle,
* {@code contains} returns {@code false} for that point.
* @param pt the new {@code Point2D} to add to this
* {@code Rectangle2D}.

0 comments on commit 40754f1

Please sign in to comment.