Skip to content

Commit 48eab3e

Browse files
committed
Page factory list element not initialized when parameterized by generic type (appium#1150)
1 parent f0ac2a9 commit 48eab3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ protected boolean isDecoratableList(Field field) {
132132
}
133133
}
134134

135-
if ((listType instanceof TypeVariable) &&
136-
Arrays.asList(((TypeVariable<?>) listType).getBounds())
135+
if ((listType instanceof TypeVariable)
136+
&& Arrays.asList(((TypeVariable<?>) listType).getBounds())
137137
.stream().anyMatch(item -> availableElementClasses.contains(item))) {
138138
return true;
139139
}

0 commit comments

Comments
 (0)