Skip to content

Commit dba99a8

Browse files
committed
refactor: Deprecate custom functional interfaces
1 parent 735e9fb commit dba99a8

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/main/java/io/appium/java_client/functions/ActionSupplier.java

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020

2121
import java.util.function.Supplier;
2222

23+
/**
24+
* Represents a supplier of actions.
25+
*
26+
* @deprecated Use {@link Supplier} instead
27+
*/
28+
@Deprecated
2329
@FunctionalInterface
2430
public interface ActionSupplier<T extends PerformsActions<?>> extends Supplier<T> {
2531
}

src/main/java/io/appium/java_client/functions/AppiumFunction.java

+2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
*
2929
* @param <F> The input type
3030
* @param <T> The return type
31+
* @deprecated Use {@link java.util.function.Function} instead
3132
*/
33+
@Deprecated
3234
@FunctionalInterface
3335
public interface AppiumFunction<F, T> extends Function<F, T>, java.util.function.Function<F, T> {
3436

src/main/java/io/appium/java_client/functions/ExpectedCondition.java

+2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
* with {@link java.util.function.Function}.
2424
*
2525
* @param <T> The return type
26+
* @deprecated Use {@link org.openqa.selenium.support.ui.ExpectedCondition} instead
2627
*/
28+
@Deprecated
2729
@FunctionalInterface
2830
public interface ExpectedCondition<T> extends org.openqa.selenium.support.ui.ExpectedCondition<T>,
2931
AppiumFunction<WebDriver, T> {

0 commit comments

Comments
 (0)