We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdbdadb + 08000fd commit 31cd9e1Copy full SHA for 31cd9e1
src/main/java/io/appium/java_client/proxy/Helpers.java
@@ -148,7 +148,8 @@ public static <T> T createProxy(
148
149
listeners.stream()
150
.filter(ProxyAwareListener.class::isInstance)
151
- .forEach(listener -> ((ProxyAwareListener) listener).attachProxyInstance(result));
+ .map(ProxyAwareListener.class::cast)
152
+ .forEach(listener -> listener.attachProxyInstance(result));
153
154
return result;
155
} catch (SecurityException | ReflectiveOperationException e) {
0 commit comments