Skip to content

Commit abd1351

Browse files
committed
[java] Point made immutable
1 parent 3c25c92 commit abd1351

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/src/org/openqa/selenium/Point.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
import org.jspecify.annotations.NullMarked;
2222
import org.jspecify.annotations.Nullable;
2323

24-
/** A copy of java.awt.Point, to remove dependency on awt. */
24+
/** Represents a point in a two-dimensional space with x and y coordinates. */
2525
@NullMarked
2626
public class Point {
27-
public int x;
28-
public int y;
27+
public final int x;
28+
public final int y;
2929

3030
public Point(int x, int y) {
3131
this.x = x;

0 commit comments

Comments
 (0)