+ implements community.kotlin.conrib.github.GHWorkflowRunQueryBuilder {
private final GHRepository repo;
/**
diff --git a/src/main/java/org/kohsuke/github/GitCommit.java b/src/main/java/org/kohsuke/github/GitCommit.java
index cc6619b33f..b3d1297452 100644
--- a/src/main/java/org/kohsuke/github/GitCommit.java
+++ b/src/main/java/org/kohsuke/github/GitCommit.java
@@ -18,7 +18,8 @@
*/
@SuppressFBWarnings(value = { "NP_UNWRITTEN_FIELD", "UWF_UNWRITTEN_FIELD" }, justification = "JSON API")
-public class GitCommit extends GitHubBridgeAdapterObject {
+public class GitCommit extends GitHubBridgeAdapterObject
+ implements community.kotlin.conrib.github.GitCommit {
/**
* The Class Tree.
*/
diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java
index 9204660a92..bc34811173 100644
--- a/src/main/java/org/kohsuke/github/GitHub.java
+++ b/src/main/java/org/kohsuke/github/GitHub.java
@@ -40,6 +40,10 @@
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
+import community.kotlin.conrib.github.GHException;
+import community.kotlin.conrib.github.GHOTPRequiredException;
+import community.kotlin.conrib.github.MarkdownMode;
+import community.kotlin.conrib.github.RateLimitTarget;
// TODO: Auto-generated Javadoc
/**
@@ -53,7 +57,8 @@
*
* @author Kohsuke Kawaguchi
*/
-public class GitHub {
+public class GitHub
+ implements community.kotlin.conrib.github.GitHub {
/**
* The Class DependentAuthorizationProvider.
diff --git a/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java b/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java
index 2c05dd1455..edac1fffba 100644
--- a/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java
+++ b/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java
@@ -12,6 +12,7 @@
import javax.annotation.Nonnull;
import static java.net.HttpURLConnection.HTTP_FORBIDDEN;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
@@ -22,7 +23,8 @@
* @see GitHubBuilder#withAbuseLimitHandler(GitHubAbuseLimitHandler)
* @see GitHubRateLimitHandler
*/
-public abstract class GitHubAbuseLimitHandler extends GitHubConnectorResponseErrorHandler {
+public abstract class GitHubAbuseLimitHandler extends GitHubConnectorResponseErrorHandler
+ implements community.kotlin.conrib.github.GitHubAbuseLimitHandler {
/**
* Fail immediately.
diff --git a/src/main/java/org/kohsuke/github/GitHubBuilder.java b/src/main/java/org/kohsuke/github/GitHubBuilder.java
index 3f762fd059..8891564f9a 100644
--- a/src/main/java/org/kohsuke/github/GitHubBuilder.java
+++ b/src/main/java/org/kohsuke/github/GitHubBuilder.java
@@ -15,6 +15,7 @@
import java.util.Properties;
import javax.annotation.Nonnull;
+import community.kotlin.conrib.github.RateLimitTarget;
// TODO: Auto-generated Javadoc
/**
@@ -22,7 +23,9 @@
*
* @since 1.59
*/
-public class GitHubBuilder implements Cloneable {
+public class GitHubBuilder
+ implements Cloneable,
+ community.kotlin.conrib.github.GitHubBuilder {
/** The home directory. */
// for testing
diff --git a/src/main/java/org/kohsuke/github/GitHubClient.java b/src/main/java/org/kohsuke/github/GitHubClient.java
index 7963de57e2..047df73663 100644
--- a/src/main/java/org/kohsuke/github/GitHubClient.java
+++ b/src/main/java/org/kohsuke/github/GitHubClient.java
@@ -35,6 +35,11 @@
import static java.net.HttpURLConnection.HTTP_UNAUTHORIZED;
import static java.util.logging.Level.*;
import static org.apache.commons.lang3.StringUtils.defaultString;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHIOException;
+import community.kotlin.conrib.github.GHOTPRequiredException;
+import community.kotlin.conrib.github.HttpException;
+import community.kotlin.conrib.github.RateLimitTarget;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java b/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java
index cb729e321c..41ef62df11 100644
--- a/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java
+++ b/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java
@@ -14,6 +14,8 @@
import static java.net.HttpURLConnection.HTTP_BAD_REQUEST;
import static java.net.HttpURLConnection.HTTP_INTERNAL_ERROR;
import static java.net.HttpURLConnection.HTTP_NOT_FOUND;
+import community.kotlin.conrib.github.HttpException;
+import community.kotlin.conrib.github.ServiceDownException;
// TODO: Auto-generated Javadoc
/**
@@ -49,10 +51,34 @@ public boolean isError(@NotNull GitHubConnectorResponse connectorResponse) throw
public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws IOException {
if (connectorResponse.statusCode() == HTTP_NOT_FOUND) {
throw new FileNotFoundException(connectorResponse.request().url().toString());
- } else if (isServiceDown(connectorResponse)) {
- throw new ServiceDownException(connectorResponse);
+ }
+
+ // Read response body for error message
+ String responseBody = null;
+ try (BufferedReader reader = new BufferedReader(
+ new InputStreamReader(connectorResponse.bodyStream(), StandardCharsets.UTF_8))) {
+ StringBuilder sb = new StringBuilder();
+ String line;
+ while ((line = reader.readLine()) != null) {
+ if (sb.length() > 0)
+ sb.append('\n');
+ sb.append(line);
+ }
+ responseBody = sb.toString();
+ } catch (Exception e) {
+ // ignore body read failures
+ }
+
+ if (isServiceDown(connectorResponse)) {
+ throw new ServiceDownException(connectorResponse.statusCode(),
+ connectorResponse.header("Status"),
+ connectorResponse.request().url().toString());
} else {
- throw new HttpException(connectorResponse);
+ throw new HttpException(responseBody,
+ connectorResponse.statusCode(),
+ connectorResponse.header("Status"),
+ connectorResponse.request().url().toString(),
+ null);
}
}
diff --git a/src/main/java/org/kohsuke/github/GitHubPageIterator.java b/src/main/java/org/kohsuke/github/GitHubPageIterator.java
index 4a831bf3f8..c7a4a6cb6b 100644
--- a/src/main/java/org/kohsuke/github/GitHubPageIterator.java
+++ b/src/main/java/org/kohsuke/github/GitHubPageIterator.java
@@ -6,6 +6,7 @@
import java.util.NoSuchElementException;
import javax.annotation.Nonnull;
+import community.kotlin.conrib.github.GHException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/main/java/org/kohsuke/github/GitHubRateLimitChecker.java b/src/main/java/org/kohsuke/github/GitHubRateLimitChecker.java
index 00ab62ef8b..37c54acf7a 100644
--- a/src/main/java/org/kohsuke/github/GitHubRateLimitChecker.java
+++ b/src/main/java/org/kohsuke/github/GitHubRateLimitChecker.java
@@ -6,6 +6,7 @@
import java.util.logging.Logger;
import javax.annotation.Nonnull;
+import community.kotlin.conrib.github.RateLimitTarget;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java b/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java
index dd6149b1bd..eb7bcae707 100644
--- a/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java
+++ b/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java
@@ -12,6 +12,7 @@
import javax.annotation.Nonnull;
import static java.net.HttpURLConnection.HTTP_FORBIDDEN;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
@@ -22,7 +23,8 @@
* @see GitHubBuilder#withRateLimitHandler(GitHubRateLimitHandler)
* @see GitHubAbuseLimitHandler
*/
-public abstract class GitHubRateLimitHandler extends GitHubConnectorResponseErrorHandler {
+public abstract class GitHubRateLimitHandler extends GitHubConnectorResponseErrorHandler
+ implements community.kotlin.conrib.github.GitHubRateLimitHandler {
/**
* Fail immediately.
diff --git a/src/main/java/org/kohsuke/github/GitHubRequest.java b/src/main/java/org/kohsuke/github/GitHubRequest.java
index 20cf1462a4..5d90478e47 100644
--- a/src/main/java/org/kohsuke/github/GitHubRequest.java
+++ b/src/main/java/org/kohsuke/github/GitHubRequest.java
@@ -23,6 +23,8 @@
import javax.annotation.WillClose;
import static java.util.Arrays.asList;
+import community.kotlin.conrib.github.GHException;
+import community.kotlin.conrib.github.RateLimitTarget;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/main/java/org/kohsuke/github/GitHubRequestBuilderDone.java b/src/main/java/org/kohsuke/github/GitHubRequestBuilderDone.java
deleted file mode 100644
index 2ace9de440..0000000000
--- a/src/main/java/org/kohsuke/github/GitHubRequestBuilderDone.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.kohsuke.github;
-
-import java.io.IOException;
-
-/**
- * The done method for data object builder/updater.
- *
- * This interface can be used to make a Builder that supports both batch and single property changes.
- *
- * Batching looks like this:
- *
- *
- *
- * update().someName(value).otherName(value).done()
- *
- *
- * Single changes look like this:
- *
- *
- *
- * set().someName(value);
- * set().otherName(value);
- *
- *
- * @author Liam Newman
- * @param
- * Final return type built by this builder returned when {@link #done()}} is called.
- */
-public interface GitHubRequestBuilderDone {
-
- /**
- * Finishes a create or update request, committing changes.
- *
- * This method may update-in-place or not. Either way it returns the resulting instance.
- *
- * @return an instance with updated current data
- * @throws IOException
- * if there is an I/O Exception
- */
- @BetaApi
- R done() throws IOException;
-}
diff --git a/src/main/java/org/kohsuke/github/GitUser.java b/src/main/java/org/kohsuke/github/GitUser.java
index 65308ec7a9..48a8b3c51e 100644
--- a/src/main/java/org/kohsuke/github/GitUser.java
+++ b/src/main/java/org/kohsuke/github/GitUser.java
@@ -19,7 +19,8 @@
*/
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API")
-public class GitUser extends GitHubBridgeAdapterObject {
+public class GitUser extends GitHubBridgeAdapterObject
+ implements community.kotlin.conrib.github.GitUser {
private String name, email, date, username;
/**
diff --git a/src/main/java/org/kohsuke/github/HttpException.java b/src/main/java/org/kohsuke/github/HttpException.java
deleted file mode 100644
index c321683f5b..0000000000
--- a/src/main/java/org/kohsuke/github/HttpException.java
+++ /dev/null
@@ -1,157 +0,0 @@
-package org.kohsuke.github;
-
-import org.kohsuke.github.connector.GitHubConnectorResponse;
-
-import java.io.IOException;
-import java.net.HttpURLConnection;
-import java.net.URL;
-
-import javax.annotation.CheckForNull;
-
-// TODO: Auto-generated Javadoc
-/**
- * {@link IOException} for http exceptions because {@link HttpURLConnection} throws un-discerned {@link IOException} and
- * it can help to know the http response code to decide how to handle an http exceptions.
- *
- * @author Cyrille Le Clerc
- */
-public class HttpException extends GHIOException {
-
- /** The Constant serialVersionUID. */
- static final long serialVersionUID = 1L;
-
- /** The response code for this exception. */
- private final int responseCode;
- /** The response message for this exception. */
- private final String responseMessage;
- /** The message for this exception. */
- private final String url;
-
- /**
- * Instantiates a new Http exception.
- *
- * @param connectorResponse
- * the connector response to base this on
- */
- public HttpException(GitHubConnectorResponse connectorResponse) {
- this(GitHubResponse.getBodyAsStringOrNull(connectorResponse),
- connectorResponse.statusCode(),
- connectorResponse.header("Status"),
- connectorResponse.request().url().toString());
- this.responseHeaderFields = connectorResponse.allHeaders();
- }
-
- /**
- * Instantiates a new Http exception.
- *
- * @param message
- * The detail message (which is saved for later retrieval by the {@link #getMessage()} method)
- * @param responseCode
- * Http response code. {@code -1} if no code can be discerned.
- * @param responseMessage
- * Http response message
- * @param url
- * The url that was invoked
- * @see HttpURLConnection#getResponseCode() HttpURLConnection#getResponseCode()
- * @see HttpURLConnection#getResponseMessage() HttpURLConnection#getResponseMessage()
- */
- public HttpException(String message, int responseCode, String responseMessage, String url) {
- super(message);
- this.responseCode = responseCode;
- this.responseMessage = responseMessage;
- this.url = url;
- }
-
- /**
- * Instantiates a new Http exception.
- *
- * @param message
- * The detail message (which is saved for later retrieval by the {@link #getMessage()} method)
- * @param responseCode
- * Http response code. {@code -1} if no code can be discerned.
- * @param responseMessage
- * Http response message
- * @param url
- * The url that was invoked
- * @param cause
- * The cause (which is saved for later retrieval by the {@link #getCause()} method). (A null value is
- * permitted, and indicates that the cause is nonexistent or unknown.)
- * @see HttpURLConnection#getResponseCode() HttpURLConnection#getResponseCode()
- * @see HttpURLConnection#getResponseMessage() HttpURLConnection#getResponseMessage()
- */
- public HttpException(String message, int responseCode, String responseMessage, String url, Throwable cause) {
- super(message, cause);
- this.responseCode = responseCode;
- this.responseMessage = responseMessage;
- this.url = url;
- }
-
- /**
- * Instantiates a new Http exception.
- *
- * @param responseCode
- * Http response code. {@code -1} if no code can be discerned.
- * @param responseMessage
- * Http response message
- * @param url
- * The url that was invoked
- * @param cause
- * The cause (which is saved for later retrieval by the {@link #getCause()} method). (A null value is
- * permitted, and indicates that the cause is nonexistent or unknown.)
- * @see HttpURLConnection#getResponseCode() HttpURLConnection#getResponseCode()
- * @see HttpURLConnection#getResponseMessage() HttpURLConnection#getResponseMessage()
- */
- public HttpException(int responseCode, String responseMessage, String url, Throwable cause) {
- super("Server returned HTTP response code: " + responseCode + ", message: '" + responseMessage + "'"
- + " for URL: " + url, cause);
- this.responseCode = responseCode;
- this.responseMessage = responseMessage;
- this.url = url;
- }
-
- /**
- * Instantiates a new Http exception.
- *
- * @param responseCode
- * Http response code. {@code -1} if no code can be discerned.
- * @param responseMessage
- * Http response message
- * @param url
- * The url that was invoked
- * @param cause
- * The cause (which is saved for later retrieval by the {@link #getCause()} method). (A null value is
- * permitted, and indicates that the cause is nonexistent or unknown.)
- * @see HttpURLConnection#getResponseCode() HttpURLConnection#getResponseCode()
- * @see HttpURLConnection#getResponseMessage() HttpURLConnection#getResponseMessage()
- */
- public HttpException(int responseCode, String responseMessage, @CheckForNull URL url, Throwable cause) {
- this(responseCode, responseMessage, url == null ? null : url.toString(), cause);
- }
-
- /**
- * Http response code of the request that cause the exception.
- *
- * @return {@code -1} if no code can be discerned.
- */
- public int getResponseCode() {
- return responseCode;
- }
-
- /**
- * Http response message of the request that cause the exception.
- *
- * @return {@code null} if no response message can be discerned.
- */
- public String getResponseMessage() {
- return responseMessage;
- }
-
- /**
- * The http URL that caused the exception.
- *
- * @return url url
- */
- public String getUrl() {
- return url;
- }
-}
diff --git a/src/main/java/org/kohsuke/github/MarkdownMode.java b/src/main/java/org/kohsuke/github/MarkdownMode.java
deleted file mode 100644
index 58245a93ba..0000000000
--- a/src/main/java/org/kohsuke/github/MarkdownMode.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.kohsuke.github;
-
-import java.util.Locale;
-
-// TODO: Auto-generated Javadoc
-/**
- * Rendering mode of markdown.
- *
- * @author Kohsuke Kawaguchi
- * @see GitHub#renderMarkdown(String) GitHub#renderMarkdown(String)
- * @see GHRepository#renderMarkdown(String, MarkdownMode) GHRepository#renderMarkdown(String, MarkdownMode)
- */
-public enum MarkdownMode {
- /**
- * Render a document as user-content, e.g. like user comments or issues are rendered. In GFM mode, hard line breaks
- * are always taken into account, and issue and user mentions are linked accordingly.
- *
- * @see GHRepository#renderMarkdown(String, MarkdownMode)
- */
- GFM,
- /**
- * Render a document as plain Markdown, just like README files are rendered.
- */
- MARKDOWN;
-
- /**
- * To string.
- *
- * @return the string
- */
- public String toString() {
- return name().toLowerCase(Locale.ENGLISH);
- }
-}
diff --git a/src/main/java/org/kohsuke/github/PagedIterable.java b/src/main/java/org/kohsuke/github/PagedIterable.java
index a916af8009..98b612ecde 100644
--- a/src/main/java/org/kohsuke/github/PagedIterable.java
+++ b/src/main/java/org/kohsuke/github/PagedIterable.java
@@ -10,6 +10,7 @@
import java.util.Set;
import javax.annotation.Nonnull;
+import community.kotlin.conrib.github.GHException;
// TODO: Auto-generated Javadoc
/**
@@ -20,7 +21,9 @@
* @param
* the type of items on each page
*/
-public abstract class PagedIterable implements Iterable {
+public abstract class PagedIterable
+ implements Iterable,
+ community.kotlin.conrib.github.PagedIterable {
/**
* Page size. 0 is default.
*/
diff --git a/src/main/java/org/kohsuke/github/RateLimitChecker.java b/src/main/java/org/kohsuke/github/RateLimitChecker.java
index 15b5f0e58d..f236e86d75 100644
--- a/src/main/java/org/kohsuke/github/RateLimitChecker.java
+++ b/src/main/java/org/kohsuke/github/RateLimitChecker.java
@@ -21,7 +21,8 @@
*
* @author Liam Newman
*/
-public abstract class RateLimitChecker {
+public abstract class RateLimitChecker
+ implements community.kotlin.conrib.github.RateLimitChecker {
/**
* A {@link RateLimitChecker} with a simple number as the limit.
diff --git a/src/main/java/org/kohsuke/github/RateLimitTarget.java b/src/main/java/org/kohsuke/github/RateLimitTarget.java
deleted file mode 100644
index 4f87995276..0000000000
--- a/src/main/java/org/kohsuke/github/RateLimitTarget.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.kohsuke.github;
-
-// TODO: Auto-generated Javadoc
-/**
- * Specifies the rate limit record of an operation.
- *
- * @see GitHubBuilder#withRateLimitChecker(RateLimitChecker, RateLimitTarget)
- */
-public enum RateLimitTarget {
- /**
- * Selects or updates the {@link GHRateLimit#getCore()} record.
- */
- CORE,
-
- /**
- * Selects or updates the {@link GHRateLimit#getGraphQL()} record.
- */
- GRAPHQL,
-
- /**
- * Selects or updates the {@link GHRateLimit#getIntegrationManifest()} record.
- */
- INTEGRATION_MANIFEST,
-
- /**
- * Selects no rate limit.
- *
- * This request uses no rate limit. If the response header includes rate limit information, it will apply to
- * {@link #CORE}.
- */
- NONE,
-
- /**
- * Selects or updates the {@link GHRateLimit#getSearch()} record.
- */
- SEARCH
-}
diff --git a/src/main/java/org/kohsuke/github/Reactable.java b/src/main/java/org/kohsuke/github/Reactable.java
deleted file mode 100644
index be7ab7b399..0000000000
--- a/src/main/java/org/kohsuke/github/Reactable.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.kohsuke.github;
-
-import java.io.IOException;
-
-// TODO: Auto-generated Javadoc
-/**
- * Those {@link GHObject}s that can have {@linkplain GHReaction reactions}.
- *
- * @author Kohsuke Kawaguchi
- */
-public interface Reactable {
- /**
- * Leaves a reaction to this object.
- *
- * @param content
- * the content
- * @return the gh reaction
- * @throws IOException
- * the io exception
- */
- GHReaction createReaction(ReactionContent content) throws IOException;
-
- /**
- * Delete a reaction from this object.
- *
- * @param reaction
- * the reaction to delete
- * @throws IOException
- * the io exception
- */
- void deleteReaction(GHReaction reaction) throws IOException;
-
- /**
- * List all the reactions left to this object.
- *
- * @return the paged iterable
- */
- PagedIterable listReactions();
-}
diff --git a/src/main/java/org/kohsuke/github/ReactionContent.java b/src/main/java/org/kohsuke/github/ReactionContent.java
deleted file mode 100644
index c0361d9b0a..0000000000
--- a/src/main/java/org/kohsuke/github/ReactionContent.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package org.kohsuke.github;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-// TODO: Auto-generated Javadoc
-/**
- * Content of reactions.
- *
- * @author Kohsuke Kawaguchi
- * @see API documentation
- * @see GHReaction
- */
-public enum ReactionContent {
-
- /** The confused. */
- CONFUSED("confused"),
-
- /** The eyes. */
- EYES("eyes"),
-
- /** The heart. */
- HEART("heart"),
-
- /** The hooray. */
- HOORAY("hooray"),
-
- /** The laugh. */
- LAUGH("laugh"),
-
- /** The minus one. */
- MINUS_ONE("-1"),
-
- /** The plus one. */
- PLUS_ONE("+1"),
-
- /** The rocket. */
- ROCKET("rocket");
-
- /**
- * For content reaction content.
- *
- * @param content
- * the content
- * @return the reaction content
- */
- @JsonCreator
- public static ReactionContent forContent(String content) {
- for (ReactionContent c : ReactionContent.values()) {
- if (c.getContent().equals(content))
- return c;
- }
- return null;
- }
-
- private final String content;
-
- /**
- * Instantiates a new reaction content.
- *
- * @param content
- * the content
- */
- ReactionContent(String content) {
- this.content = content;
- }
-
- /**
- * Gets content.
- *
- * @return the content
- */
- @JsonValue
- public String getContent() {
- return content;
- }
-}
diff --git a/src/main/java/org/kohsuke/github/Refreshable.java b/src/main/java/org/kohsuke/github/Refreshable.java
deleted file mode 100644
index c8a954b32f..0000000000
--- a/src/main/java/org/kohsuke/github/Refreshable.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.kohsuke.github;
-
-import java.io.IOException;
-
-// TODO: Auto-generated Javadoc
-/**
- * The interface Refreshable.
- *
- * @author Liam Newman
- */
-public interface Refreshable {
- /**
- * Opens a connection to the given URL.
- *
- * @throws IOException
- * the io exception
- */
- void refresh() throws IOException;
-
- /**
- * Calls refresh if the provided value is null.
- *
- * @param value
- * the value
- * @throws IOException
- * the io exception
- */
- default void refresh(Object value) throws IOException {
- if (value == null) {
- this.refresh();
- }
- }
-}
diff --git a/src/main/java/org/kohsuke/github/ServiceDownException.java b/src/main/java/org/kohsuke/github/ServiceDownException.java
deleted file mode 100644
index 81f35b33b0..0000000000
--- a/src/main/java/org/kohsuke/github/ServiceDownException.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.kohsuke.github;
-
-import org.kohsuke.github.connector.GitHubConnectorResponse;
-
-import java.io.IOException;
-
-/**
- * Special {@link IOException} case for http exceptions, when {@link HttpException} is thrown due to GitHub service
- * being down.
- *
- * Inherits from {@link HttpException} to maintain compatibility with existing clients.
- *
- * @author Rastislav Budinsky
- */
-public class ServiceDownException extends HttpException {
-
- /**
- * Instantiates a new service down exception.
- *
- * @param connectorResponse
- * the connector response to base this on
- */
- public ServiceDownException(GitHubConnectorResponse connectorResponse) {
- super(connectorResponse);
- }
-}
diff --git a/src/main/java/org/kohsuke/github/TrafficInfo.java b/src/main/java/org/kohsuke/github/TrafficInfo.java
deleted file mode 100644
index 241785a404..0000000000
--- a/src/main/java/org/kohsuke/github/TrafficInfo.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.kohsuke.github;
-
-// TODO: Auto-generated Javadoc
-/**
- * The interface TrafficInfo.
- *
- * @author Kohsuke Kawaguchi
- */
-public interface TrafficInfo {
- /**
- * Total count of hits.
- *
- * @return the count
- */
- int getCount();
-
- /**
- * Unique visitors.
- *
- * @return the uniques
- */
- int getUniques();
-}
diff --git a/src/main/java/org/kohsuke/github/connector/GitHubConnector.java b/src/main/java/org/kohsuke/github/connector/GitHubConnector.java
index 94df7869f4..43a98791c2 100644
--- a/src/main/java/org/kohsuke/github/connector/GitHubConnector.java
+++ b/src/main/java/org/kohsuke/github/connector/GitHubConnector.java
@@ -1,6 +1,6 @@
package org.kohsuke.github.connector;
-import org.kohsuke.github.GHIOException;
+import community.kotlin.conrib.github.GHIOException;
import org.kohsuke.github.internal.DefaultGitHubConnector;
import java.io.IOException;
diff --git a/src/main/java/org/kohsuke/github/extras/authorization/JwtBuilderUtil.java b/src/main/java/org/kohsuke/github/extras/authorization/JwtBuilderUtil.java
index a5535b4973..c15fb9992a 100644
--- a/src/main/java/org/kohsuke/github/extras/authorization/JwtBuilderUtil.java
+++ b/src/main/java/org/kohsuke/github/extras/authorization/JwtBuilderUtil.java
@@ -5,7 +5,7 @@
import io.jsonwebtoken.io.Serializer;
import io.jsonwebtoken.jackson.io.JacksonSerializer;
import io.jsonwebtoken.security.SignatureAlgorithm;
-import org.kohsuke.github.GHException;
+import community.kotlin.conrib.github.GHException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
diff --git a/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java b/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java
index 0b52a9d49e..3a4aadbae3 100644
--- a/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java
+++ b/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java
@@ -21,6 +21,7 @@
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
+import community.kotlin.conrib.github.GHFileNotFoundException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java b/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java
index 2a36f2a58f..91ff9905be 100644
--- a/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java
+++ b/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java
@@ -15,6 +15,8 @@
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
+import community.kotlin.conrib.github.GHIOException;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/AppInstallationAuthorizationProviderTest.java b/src/test/java/org/kohsuke/github/AppInstallationAuthorizationProviderTest.java
index 092a4dd1fd..4e9a904f94 100644
--- a/src/test/java/org/kohsuke/github/AppInstallationAuthorizationProviderTest.java
+++ b/src/test/java/org/kohsuke/github/AppInstallationAuthorizationProviderTest.java
@@ -10,6 +10,7 @@
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.startsWith;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java
index cb59f2af62..ecd0f0eec7 100755
--- a/src/test/java/org/kohsuke/github/AppTest.java
+++ b/src/test/java/org/kohsuke/github/AppTest.java
@@ -21,6 +21,13 @@
import java.util.stream.Collectors;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHCommitState;
+import community.kotlin.conrib.github.GHDeploymentState;
+import community.kotlin.conrib.github.GHDirection;
+import community.kotlin.conrib.github.GHEvent;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHIssueState;
+import community.kotlin.conrib.github.ReactionContent;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java b/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java
index c8d7779c5b..9874e89b09 100644
--- a/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java
+++ b/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java
@@ -6,6 +6,11 @@
import java.util.Optional;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHException;
+import community.kotlin.conrib.github.GHIOException;
+import community.kotlin.conrib.github.GHNotExternallyManagedEnterpriseException;
+import community.kotlin.conrib.github.GHTeamCannotBeExternallyManagedException;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
@@ -65,7 +70,7 @@ public void testHandleEmbeddedNotPartOfExternallyManagedEnterpriseHttpException(
assertThat(failure.getMessage(),
equalTo(EnterpriseManagedSupport.COULD_NOT_RETRIEVE_ORGANIZATION_EXTERNAL_GROUPS));
- final GHError error = failure.getError();
+ final community.kotlin.conrib.github.GHError error = failure.getError();
assertThat(error, notNullValue());
assertThat(error.getMessage(),
@@ -102,7 +107,7 @@ public void testHandleTeamCannotBeExternallyManagedHttpException() throws IOExce
final GHTeamCannotBeExternallyManagedException failure = (GHTeamCannotBeExternallyManagedException) exception;
- final GHError error = failure.getError();
+ final community.kotlin.conrib.github.GHError error = failure.getError();
assertThat(error, notNullValue());
assertThat(error.getMessage(), equalTo(EnterpriseManagedSupport.TEAM_CANNOT_BE_EXTERNALLY_MANAGED_ERROR));
diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java
index e8d600bd0d..fb92f385b0 100644
--- a/src/test/java/org/kohsuke/github/EnumTest.java
+++ b/src/test/java/org/kohsuke/github/EnumTest.java
@@ -3,6 +3,24 @@
import org.junit.Test;
import static org.hamcrest.CoreMatchers.*;
+import community.kotlin.conrib.github.GHCommentAuthorAssociation;
+import community.kotlin.conrib.github.GHCommitState;
+import community.kotlin.conrib.github.GHDeploymentState;
+import community.kotlin.conrib.github.GHDirection;
+import community.kotlin.conrib.github.GHEvent;
+import community.kotlin.conrib.github.GHFork;
+import community.kotlin.conrib.github.GHIssueState;
+import community.kotlin.conrib.github.GHIssueStateReason;
+import community.kotlin.conrib.github.GHMarketplaceAccountType;
+import community.kotlin.conrib.github.GHMarketplacePriceModel;
+import community.kotlin.conrib.github.GHMilestoneState;
+import community.kotlin.conrib.github.GHPermissionType;
+import community.kotlin.conrib.github.GHPullRequestReviewEvent;
+import community.kotlin.conrib.github.GHPullRequestReviewState;
+import community.kotlin.conrib.github.GHRepositorySelection;
+import community.kotlin.conrib.github.GHTargetType;
+import community.kotlin.conrib.github.MarkdownMode;
+import community.kotlin.conrib.github.ReactionContent;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHAppInstallationTest.java b/src/test/java/org/kohsuke/github/GHAppInstallationTest.java
index 04f4f2529f..60c136eff5 100644
--- a/src/test/java/org/kohsuke/github/GHAppInstallationTest.java
+++ b/src/test/java/org/kohsuke/github/GHAppInstallationTest.java
@@ -10,6 +10,7 @@
import java.util.List;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHMarketplaceAccountType;
// TODO: Auto-generated Javadoc
diff --git a/src/test/java/org/kohsuke/github/GHAppTest.java b/src/test/java/org/kohsuke/github/GHAppTest.java
index 420bc16466..8243bf3382 100644
--- a/src/test/java/org/kohsuke/github/GHAppTest.java
+++ b/src/test/java/org/kohsuke/github/GHAppTest.java
@@ -18,6 +18,10 @@
import java.util.TimeZone;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHEvent;
+import community.kotlin.conrib.github.GHPermissionType;
+import community.kotlin.conrib.github.GHRepositorySelection;
+import community.kotlin.conrib.github.GHTargetType;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHAutolinkTest.java b/src/test/java/org/kohsuke/github/GHAutolinkTest.java
index b337542ee1..72c2815ce3 100644
--- a/src/test/java/org/kohsuke/github/GHAutolinkTest.java
+++ b/src/test/java/org/kohsuke/github/GHAutolinkTest.java
@@ -7,6 +7,7 @@
import java.util.List;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHFileNotFoundException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java b/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java
index ef888faf5e..96852d6c01 100644
--- a/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java
+++ b/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java
@@ -33,6 +33,8 @@
import java.util.Date;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHException;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java b/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java
index 7c60131669..9bd8b97e28 100644
--- a/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java
+++ b/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java
@@ -13,6 +13,8 @@
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThrows;
+import community.kotlin.conrib.github.GHException;
+import community.kotlin.conrib.github.GHFileNotFoundException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHDiscussionTest.java b/src/test/java/org/kohsuke/github/GHDiscussionTest.java
index 2a713647df..28b2c03a3d 100644
--- a/src/test/java/org/kohsuke/github/GHDiscussionTest.java
+++ b/src/test/java/org/kohsuke/github/GHDiscussionTest.java
@@ -9,6 +9,7 @@
import java.util.Set;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHEventPayloadTest.java b/src/test/java/org/kohsuke/github/GHEventPayloadTest.java
index 44e05d3aee..bae5e982ff 100644
--- a/src/test/java/org/kohsuke/github/GHEventPayloadTest.java
+++ b/src/test/java/org/kohsuke/github/GHEventPayloadTest.java
@@ -25,6 +25,12 @@
import static org.hamcrest.Matchers.sameInstance;
import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertThrows;
+import community.kotlin.conrib.github.GHCommentAuthorAssociation;
+import community.kotlin.conrib.github.GHCommitState;
+import community.kotlin.conrib.github.GHDeploymentState;
+import community.kotlin.conrib.github.GHEvent;
+import community.kotlin.conrib.github.GHIssueState;
+import community.kotlin.conrib.github.GHPullRequestReviewState;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHEventTest.java b/src/test/java/org/kohsuke/github/GHEventTest.java
index 5c6f8225ee..231230d43a 100644
--- a/src/test/java/org/kohsuke/github/GHEventTest.java
+++ b/src/test/java/org/kohsuke/github/GHEventTest.java
@@ -4,6 +4,7 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
+import community.kotlin.conrib.github.GHEvent;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHHookTest.java b/src/test/java/org/kohsuke/github/GHHookTest.java
index ca6b1a7186..18d25641a4 100644
--- a/src/test/java/org/kohsuke/github/GHHookTest.java
+++ b/src/test/java/org/kohsuke/github/GHHookTest.java
@@ -15,6 +15,8 @@
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.hasKey;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
+import community.kotlin.conrib.github.GHEvent;
+import community.kotlin.conrib.github.GHFileNotFoundException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHIssueTest.java b/src/test/java/org/kohsuke/github/GHIssueTest.java
index 6fdaf379bc..aeb33bb853 100644
--- a/src/test/java/org/kohsuke/github/GHIssueTest.java
+++ b/src/test/java/org/kohsuke/github/GHIssueTest.java
@@ -19,6 +19,10 @@
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
+import community.kotlin.conrib.github.GHCommentAuthorAssociation;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHIssueState;
+import community.kotlin.conrib.github.GHIssueStateReason;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java b/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java
index 02edb19a9e..4b89589ee8 100644
--- a/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java
+++ b/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java
@@ -8,9 +8,12 @@
import java.util.List;
import static org.hamcrest.Matchers.*;
-import static org.kohsuke.github.GHDirection.DESC;
-import static org.kohsuke.github.GHMarketplaceAccountType.ORGANIZATION;
+import static community.kotlin.conrib.github.GHDirection.DESC;
+import static community.kotlin.conrib.github.GHMarketplaceAccountType.ORGANIZATION;
import static org.kohsuke.github.GHMarketplaceListAccountBuilder.Sort.UPDATED;
+import community.kotlin.conrib.github.GHDirection;
+import community.kotlin.conrib.github.GHMarketplaceAccountType;
+import community.kotlin.conrib.github.GHMarketplacePriceModel;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHMilestoneTest.java b/src/test/java/org/kohsuke/github/GHMilestoneTest.java
index b7e6994d3e..b6757e9a54 100644
--- a/src/test/java/org/kohsuke/github/GHMilestoneTest.java
+++ b/src/test/java/org/kohsuke/github/GHMilestoneTest.java
@@ -9,6 +9,7 @@
import java.util.Date;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHIssueState;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHOrganizationTest.java b/src/test/java/org/kohsuke/github/GHOrganizationTest.java
index cb9694bb41..855f4485a0 100644
--- a/src/test/java/org/kohsuke/github/GHOrganizationTest.java
+++ b/src/test/java/org/kohsuke/github/GHOrganizationTest.java
@@ -15,6 +15,8 @@
import static org.junit.Assert.assertThrows;
import static org.kohsuke.github.ExternalGroupsTestingSupport.*;
import static org.kohsuke.github.ExternalGroupsTestingSupport.Matchers.*;
+import community.kotlin.conrib.github.GHIOException;
+import community.kotlin.conrib.github.GHNotExternallyManagedEnterpriseException;
// TODO: Auto-generated Javadoc
@@ -560,7 +562,7 @@ public void testListExternalGroupsNotEnterpriseManagedOrganization() throws IOEx
assertThat(failure.getMessage(), equalTo("Could not retrieve organization external groups"));
- final GHError error = failure.getError();
+ final community.kotlin.conrib.github.GHError error = failure.getError();
assertThat(error, notNullValue());
assertThat(error.getMessage(),
diff --git a/src/test/java/org/kohsuke/github/GHPullRequestTest.java b/src/test/java/org/kohsuke/github/GHPullRequestTest.java
index 4220a4cacb..dcdcf8f92e 100644
--- a/src/test/java/org/kohsuke/github/GHPullRequestTest.java
+++ b/src/test/java/org/kohsuke/github/GHPullRequestTest.java
@@ -27,6 +27,13 @@
import static org.hamcrest.Matchers.nullValue;
import static org.kohsuke.github.GHPullRequestReviewComment.Side.LEFT;
import static org.kohsuke.github.GHPullRequestReviewComment.Side.RIGHT;
+import community.kotlin.conrib.github.GHCommentAuthorAssociation;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHIssueState;
+import community.kotlin.conrib.github.GHPullRequestReviewEvent;
+import community.kotlin.conrib.github.GHPullRequestReviewState;
+import community.kotlin.conrib.github.HttpException;
+import community.kotlin.conrib.github.ReactionContent;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHRateLimitTest.java b/src/test/java/org/kohsuke/github/GHRateLimitTest.java
index 66fcc21df1..dcf47db808 100644
--- a/src/test/java/org/kohsuke/github/GHRateLimitTest.java
+++ b/src/test/java/org/kohsuke/github/GHRateLimitTest.java
@@ -15,6 +15,9 @@
import static org.hamcrest.CoreMatchers.sameInstance;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
+import community.kotlin.conrib.github.GHDirection;
+import community.kotlin.conrib.github.HttpException;
+import community.kotlin.conrib.github.RateLimitTarget;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHReleaseTest.java b/src/test/java/org/kohsuke/github/GHReleaseTest.java
index 1a4b5a79d4..fdc33702bd 100644
--- a/src/test/java/org/kohsuke/github/GHReleaseTest.java
+++ b/src/test/java/org/kohsuke/github/GHReleaseTest.java
@@ -7,6 +7,8 @@
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThrows;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java
index db5d892f85..f88d59868f 100644
--- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java
+++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java
@@ -25,6 +25,14 @@
import static org.junit.Assert.assertThrows;
import static org.kohsuke.github.GHVerification.Reason.GPGVERIFY_ERROR;
import static org.kohsuke.github.GHVerification.Reason.UNKNOWN_SIGNATURE_TYPE;
+import community.kotlin.conrib.github.GHCommitState;
+import community.kotlin.conrib.github.GHDirection;
+import community.kotlin.conrib.github.GHException;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHFork;
+import community.kotlin.conrib.github.GHPermissionType;
+import community.kotlin.conrib.github.HttpException;
+import community.kotlin.conrib.github.MarkdownMode;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHTeamTest.java b/src/test/java/org/kohsuke/github/GHTeamTest.java
index fa80ce605c..6470a35db8 100644
--- a/src/test/java/org/kohsuke/github/GHTeamTest.java
+++ b/src/test/java/org/kohsuke/github/GHTeamTest.java
@@ -15,6 +15,10 @@
import static org.junit.Assert.assertThrows;
import static org.kohsuke.github.ExternalGroupsTestingSupport.*;
import static org.kohsuke.github.ExternalGroupsTestingSupport.Matchers.isExternalGroupSummary;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHIOException;
+import community.kotlin.conrib.github.GHNotExternallyManagedEnterpriseException;
+import community.kotlin.conrib.github.GHTeamCannotBeExternallyManagedException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java
index f2eda74276..b2da2cbd50 100644
--- a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java
+++ b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java
@@ -25,6 +25,10 @@
import java.util.zip.ZipInputStream;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHDirection;
+import community.kotlin.conrib.github.GHEvent;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHIssueState;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GHWorkflowTest.java b/src/test/java/org/kohsuke/github/GHWorkflowTest.java
index 836907ae91..e9a85766ad 100644
--- a/src/test/java/org/kohsuke/github/GHWorkflowTest.java
+++ b/src/test/java/org/kohsuke/github/GHWorkflowTest.java
@@ -14,6 +14,7 @@
import static com.github.tomakehurst.wiremock.client.WireMock.verify;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.Matchers.notNullValue;
+import community.kotlin.conrib.github.GHEvent;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GitHubStaticTest.java b/src/test/java/org/kohsuke/github/GitHubStaticTest.java
index 5db7bc1ead..df458bcd76 100644
--- a/src/test/java/org/kohsuke/github/GitHubStaticTest.java
+++ b/src/test/java/org/kohsuke/github/GitHubStaticTest.java
@@ -20,6 +20,8 @@
import static org.hamcrest.Matchers.not;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
import static org.junit.Assert.assertThrows;
+import community.kotlin.conrib.github.GHException;
+import community.kotlin.conrib.github.RateLimitTarget;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/GitHubTest.java b/src/test/java/org/kohsuke/github/GitHubTest.java
index 794eff5297..39b380433b 100644
--- a/src/test/java/org/kohsuke/github/GitHubTest.java
+++ b/src/test/java/org/kohsuke/github/GitHubTest.java
@@ -9,7 +9,11 @@
import java.util.*;
import static org.hamcrest.Matchers.*;
-import static org.kohsuke.github.GHMarketplaceAccountType.ORGANIZATION;
+import static community.kotlin.conrib.github.GHMarketplaceAccountType.ORGANIZATION;
+import community.kotlin.conrib.github.GHDirection;
+import community.kotlin.conrib.github.GHFork;
+import community.kotlin.conrib.github.GHMarketplaceAccountType;
+import community.kotlin.conrib.github.ServiceDownException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/RateLimitHandlerTest.java b/src/test/java/org/kohsuke/github/RateLimitHandlerTest.java
index 8781b544ee..61869ad611 100644
--- a/src/test/java/org/kohsuke/github/RateLimitHandlerTest.java
+++ b/src/test/java/org/kohsuke/github/RateLimitHandlerTest.java
@@ -11,6 +11,8 @@
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
+import community.kotlin.conrib.github.GHIOException;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java b/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java
index 16513ca57c..4d3c286c2e 100644
--- a/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java
+++ b/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java
@@ -10,6 +10,7 @@
import java.util.List;
import static org.hamcrest.CoreMatchers.equalTo;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/RequesterRetryTest.java b/src/test/java/org/kohsuke/github/RequesterRetryTest.java
index 5d6865a869..927cd4eddd 100644
--- a/src/test/java/org/kohsuke/github/RequesterRetryTest.java
+++ b/src/test/java/org/kohsuke/github/RequesterRetryTest.java
@@ -26,6 +26,8 @@
import javax.annotation.Nonnull;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java
index bdac794e44..a889eec3aa 100644
--- a/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java
+++ b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java
@@ -7,6 +7,7 @@
import static org.hamcrest.Matchers.*;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
+import community.kotlin.conrib.github.GHFileNotFoundException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java b/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java
index 70a73fabb1..2517de51a0 100644
--- a/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java
+++ b/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java
@@ -10,6 +10,7 @@
import java.time.Instant;
import static org.hamcrest.Matchers.*;
+import community.kotlin.conrib.github.HttpException;
// TODO: Auto-generated Javadoc
/**
diff --git a/src/test/java/org/kohsuke/github/extras/okhttp3/GitHubCachingTest.java b/src/test/java/org/kohsuke/github/extras/okhttp3/GitHubCachingTest.java
index 334b7e1052..04bd2b108e 100644
--- a/src/test/java/org/kohsuke/github/extras/okhttp3/GitHubCachingTest.java
+++ b/src/test/java/org/kohsuke/github/extras/okhttp3/GitHubCachingTest.java
@@ -9,8 +9,8 @@
import org.junit.Before;
import org.junit.Test;
import org.kohsuke.github.AbstractGitHubWireMockTest;
-import org.kohsuke.github.GHFileNotFoundException;
-import org.kohsuke.github.GHIssueState;
+import community.kotlin.conrib.github.GHFileNotFoundException;
+import community.kotlin.conrib.github.GHIssueState;
import org.kohsuke.github.GHPullRequest;
import org.kohsuke.github.GHRef;
import org.kohsuke.github.GHRepository;