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 7108f3a commit 06a7dffCopy full SHA for 06a7dff
java/client/src/org/openqa/selenium/remote/http/HttpClient.java
@@ -44,7 +44,7 @@ static Factory createDefault() {
44
Class<? extends Factory> clazz =
45
Class.forName("org.openqa.selenium.remote.http.okhttp.OkHttpClient$Factory")
46
.asSubclass(Factory.class);
47
- return clazz.newInstance();
+ return clazz.getConstructor().newInstance();
48
} catch (ReflectiveOperationException e) {
49
throw new UnsupportedOperationException("Unable to create HTTP client factory", e);
50
}
0 commit comments