Skip to content

Commit

Permalink
Deprecate for removal PGPoint.setLocation(java.awt.Point) to cut depe…
Browse files Browse the repository at this point in the history
…ndency to `java.desktop` module. (#2967)
  • Loading branch information
desruisseaux committed Oct 23, 2023
1 parent 9ea59bd commit 9cf9f36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pgjdbc/src/main/java/org/postgresql/geometric/PGpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ public void setLocation(int x, int y) {
*
* @param p Point to move to
* @see java.awt.Point
*
* @deprecated Will be removed for avoiding a dependency to the {@code java.desktop} module.
*/
@Deprecated
public void setLocation(Point p) {
setLocation(p.x, p.y);
}
Expand Down

0 comments on commit 9cf9f36

Please sign in to comment.