From e83100240216089dac715d3ba6265ce3effd3a16 Mon Sep 17 00:00:00 2001 From: Maciej Kucharczyk Date: Tue, 25 Mar 2025 20:27:49 +0100 Subject: [PATCH] [java] Point made immutable --- java/src/org/openqa/selenium/Point.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/src/org/openqa/selenium/Point.java b/java/src/org/openqa/selenium/Point.java index 076de20499be2..e98617720cec4 100644 --- a/java/src/org/openqa/selenium/Point.java +++ b/java/src/org/openqa/selenium/Point.java @@ -21,11 +21,11 @@ import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; -/** A copy of java.awt.Point, to remove dependency on awt. */ +/** Represents a point in a two-dimensional space with x and y coordinates. */ @NullMarked public class Point { - public int x; - public int y; + public final int x; + public final int y; public Point(int x, int y) { this.x = x;