Skip to content

Commit 53a89e3

Browse files
committed
[java] Add nullness for interactions
1 parent ac34254 commit 53a89e3

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

java/src/org/openqa/selenium/interactions/Coordinates.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717

1818
package org.openqa.selenium.interactions;
1919

20+
import org.jspecify.annotations.NullMarked;
2021
import org.openqa.selenium.Point;
2122

2223
/**
2324
* Provides coordinates of an element for advanced interactions. Note that some coordinates (such as
2425
* screen coordinates) are evaluated lazily since the element may have to be scrolled into view.
2526
*/
27+
@NullMarked
2628
public interface Coordinates {
2729

2830
/**

java/src/org/openqa/selenium/interactions/Interactive.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
package org.openqa.selenium.interactions;
1919

2020
import java.util.Collection;
21+
import org.jspecify.annotations.NullMarked;
2122

2223
/**
2324
* Indicates that a class can be used with the W3C WebDriver <a
2425
* href="https://www.w3.org/TR/webdriver/#actions">Actions commands</a>.
2526
*/
27+
@NullMarked
2628
public interface Interactive {
2729
void perform(Collection<Sequence> actions);
2830

java/src/org/openqa/selenium/interactions/SourceType.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717

1818
package org.openqa.selenium.interactions;
1919

20+
import org.jspecify.annotations.NullMarked;
21+
2022
/** One of the allowing types for an {@link InputSource}. */
23+
@NullMarked
2124
public enum SourceType {
2225
KEY("key"),
23-
NONE(null),
26+
NONE("none"),
2427
POINTER("pointer"),
2528
WHEEL("wheel");
2629

0 commit comments

Comments
 (0)