diff --git a/src/main/java/org/kohsuke/github/internal/DefaultGitHubConnector.java b/src/main/java/org/kohsuke/github/internal/DefaultGitHubConnector.java index 1b00b01596..9f54ce1edd 100644 --- a/src/main/java/org/kohsuke/github/internal/DefaultGitHubConnector.java +++ b/src/main/java/org/kohsuke/github/internal/DefaultGitHubConnector.java @@ -50,11 +50,11 @@ static GitHubConnector create(String defaultConnectorProperty) { } else if (defaultConnectorProperty.equalsIgnoreCase("httpclient")) { return new HttpClientGitHubConnector(); } else if (defaultConnectorProperty.equalsIgnoreCase("default")) { - try { - return new HttpClientGitHubConnector(); - } catch (UnsupportedOperationException | LinkageError e) { - return new GitHubConnectorHttpConnectorAdapter(HttpConnector.DEFAULT); - } + // try { + return new HttpClientGitHubConnector(); + // } catch (UnsupportedOperationException | LinkageError e) { + // return new GitHubConnectorHttpConnectorAdapter(HttpConnector.DEFAULT); + // } } else { throw new IllegalStateException( "Property 'test.github.connector' must reference a valid built-in connector - okhttp, okhttpconnector, urlconnection, or default.");