Skip to content

Commit 0c7086f

Browse files
chore: Mark Windows page object annotations as deprecated (appium#1938)
1 parent 431edd3 commit 0c7086f

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

src/main/java/io/appium/java_client/pagefactory/WindowsBy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
/**
2020
* Used to build a complex Windows automation locator.
21+
* @deprecated This annotation is deprecated and will be removed.
2122
*/
23+
@Deprecated
2224
public @interface WindowsBy {
2325

2426
/**

src/main/java/io/appium/java_client/pagefactory/WindowsFindAll.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
* of {@link WindowsBy} tags
3030
* It will then search for all elements that match any criteria. Note that elements
3131
* are not guaranteed to be in document order.
32+
* @deprecated This annotation is deprecated and will be removed.
3233
*/
34+
@Deprecated
3335
@Retention(RUNTIME) @Target({FIELD, TYPE})
3436
@Repeatable(WindowsFindByAllSet.class)
3537
public @interface WindowsFindAll {

src/main/java/io/appium/java_client/pagefactory/WindowsFindBy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
* {@link org.openqa.selenium.support.PageFactory}
3131
* this allows users to quickly and easily create PageObjects.
3232
* using Windows automation selectors, accessibility, id, name, class name, tag and xpath
33+
* @deprecated This annotation is deprecated and will be removed.
3334
*/
35+
@Deprecated
3436
@Retention(RUNTIME) @Target({FIELD, TYPE})
3537
@Repeatable(WindowsFindBySet.class)
3638
public @interface WindowsFindBy {

src/main/java/io/appium/java_client/pagefactory/WindowsFindByAllSet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
/**
1111
* Defines set of chained/possible locators. Each one locator
1212
* should be defined with {@link WindowsFindAll}
13+
* @deprecated This annotation is deprecated and will be removed.
1314
*/
15+
@Deprecated
1416
@Target(value = {TYPE, FIELD})
1517
@Retention(value = RUNTIME)
1618
public @interface WindowsFindByAllSet {

src/main/java/io/appium/java_client/pagefactory/WindowsFindByChainSet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
/**
1111
* Defines set of chained/possible locators. Each one locator
1212
* should be defined with {@link WindowsFindBys}
13+
* @deprecated This annotation is deprecated and will be removed.
1314
*/
15+
@Deprecated
1416
@Target(value = {TYPE, FIELD})
1517
@Retention(value = RUNTIME)
1618
public @interface WindowsFindByChainSet {

src/main/java/io/appium/java_client/pagefactory/WindowsFindBySet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
/**
2727
* Defines set of chained/possible locators. Each one locator
2828
* should be defined with {@link WindowsFindBy}
29+
* @deprecated This annotation is deprecated and will be removed.
2930
*/
31+
@Deprecated
3032
@Target(value = {TYPE, FIELD})
3133
@Retention(value = RUNTIME)
3234
public @interface WindowsFindBySet {

src/main/java/io/appium/java_client/pagefactory/WindowsFindBys.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
/**
2828
* Used to mark a field on a Page Object to indicate that lookup should use
2929
* a series of {@link WindowsBy} tags.
30+
* @deprecated This annotation is deprecated and will be removed.
3031
*/
32+
@Deprecated
3133
@Retention(RUNTIME) @Target({FIELD, TYPE})
3234
@Repeatable(WindowsFindByChainSet.class)
3335
public @interface WindowsFindBys {

0 commit comments

Comments
 (0)