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.
1 parent c262974 commit 08000fdCopy full SHA for 08000fd
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