Skip to content

Commit

Permalink
[java] JSpecify annotations for wrappers (#14396)
Browse files Browse the repository at this point in the history
Co-authored-by: Puja Jagani <[email protected]>
Co-authored-by: Diego Molina <[email protected]>

[skip ci]
  • Loading branch information
mk868 authored Dec 28, 2024
1 parent b60fb8e commit 045ce40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/src/org/openqa/selenium/WrapsDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
3 changes: 3 additions & 0 deletions java/src/org/openqa/selenium/WrapsElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 045ce40

Please sign in to comment.