Skip to content

Commit

Permalink
Retain one constructor exception
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Jun 20, 2024
1 parent 702abb4 commit 499f047
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.kohsuke.github.extras;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.kohsuke.github.connector.GitHubConnector;
import org.kohsuke.github.connector.GitHubConnectorRequest;
import org.kohsuke.github.connector.GitHubConnectorResponse;
Expand All @@ -11,12 +12,14 @@
*
* @author Liam Newman
*/
@SuppressFBWarnings(value = { "CT_CONSTRUCTOR_THROW" }, justification = "Basic validation")
public class HttpClientGitHubConnector implements GitHubConnector {

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

@Override
Expand Down

0 comments on commit 499f047

Please sign in to comment.