Skip to content

Commit

Permalink
Test Java 8 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Sep 7, 2023
1 parent 2822729 commit 62dea3f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 62dea3f

Please sign in to comment.