Skip to content

Commit 499f047

Browse files
committed
Retain one constructor exception
1 parent 702abb4 commit 499f047

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/kohsuke/github/extras/HttpClientGitHubConnector.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.kohsuke.github.extras;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
34
import org.kohsuke.github.connector.GitHubConnector;
45
import org.kohsuke.github.connector.GitHubConnectorRequest;
56
import org.kohsuke.github.connector.GitHubConnectorResponse;
@@ -11,12 +12,14 @@
1112
*
1213
* @author Liam Newman
1314
*/
15+
@SuppressFBWarnings(value = { "CT_CONSTRUCTOR_THROW" }, justification = "Basic validation")
1416
public class HttpClientGitHubConnector implements GitHubConnector {
1517

1618
/**
1719
* Instantiates a new Impatient http connector.
1820
*/
1921
public HttpClientGitHubConnector() {
22+
throw new UnsupportedOperationException("java.net.http.HttpClient is only supported in Java 11+.");
2023
}
2124

2225
@Override

0 commit comments

Comments
 (0)