diff --git a/java/src/org/openqa/selenium/WrapsDriver.java b/java/src/org/openqa/selenium/WrapsDriver.java index 0817c8053a13a..683c4de6a050f 100644 --- a/java/src/org/openqa/selenium/WrapsDriver.java +++ b/java/src/org/openqa/selenium/WrapsDriver.java @@ -17,10 +17,13 @@ package org.openqa.selenium; +import org.jspecify.annotations.NullMarked; + /** * This interface indicates that the implementing class knows about the driver that contains it and * can export it. */ +@NullMarked @FunctionalInterface public interface WrapsDriver { /** diff --git a/java/src/org/openqa/selenium/WrapsElement.java b/java/src/org/openqa/selenium/WrapsElement.java index 89dccf3497723..fccbc67bb8f8b 100644 --- a/java/src/org/openqa/selenium/WrapsElement.java +++ b/java/src/org/openqa/selenium/WrapsElement.java @@ -17,7 +17,10 @@ package org.openqa.selenium; +import org.jspecify.annotations.NullMarked; + /** Indicates that there is an underlying element that can be used */ +@NullMarked @FunctionalInterface public interface WrapsElement { WebElement getWrappedElement();