On Wed, 27 Aug 2025 18:36:30 GMT, Damon Nguyen <[email protected]> wrote:
> Some useful methods (click, glide, waitForIdle, type) in ExtendedRobot should
> be migrated into Robot itself so that ExtendedRobot can be removed in the
> future. The tests using these ExtendedRobot methods will be handled
> separately.
src/java.desktop/share/classes/java/awt/Robot.java line 137:
> 135: * Default pixel step-length for mouse {@link #glide(int, int, int,
> int) glide}.
> 136: */
> 137: public final int DEFAULT_STEP_LENGTH = 2;
Is there a reason these fields are not static? Non-static final fields like
these are constant only in the class and not constant when used by other
classes, and require an instance to access, but I don't find these differences
convincing as the reason.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26969#discussion_r2305004542