Skip to content

Commit 15b84f3

Browse files
mk868diemol
andauthored
[java] Point made as immutable (#15511)
[java] Point made immutable Co-authored-by: Diego Molina <[email protected]>
1 parent 4abfeee commit 15b84f3

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)