-
Notifications
You must be signed in to change notification settings - Fork 770
Enable Jackson 3 - Phase 2 #2183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,8 @@ | |||||
| import org.kohsuke.github.authorization.ImmutableAuthorizationProvider; | ||||||
| import org.kohsuke.github.connector.GitHubConnector; | ||||||
| import org.kohsuke.github.connector.GitHubConnectorResponse; | ||||||
| import org.kohsuke.github.internal.DefaultGitHubJackson; | ||||||
| import org.kohsuke.github.internal.GitHubJackson; | ||||||
|
|
||||||
| import java.io.File; | ||||||
| import java.io.FileInputStream; | ||||||
|
|
@@ -159,6 +161,8 @@ static GitHubBuilder fromCredentials() throws IOException { | |||||
|
|
||||||
| private GitHubConnector connector; | ||||||
|
|
||||||
| private GitHubJackson jackson; | ||||||
|
|
||||||
| private GitHubRateLimitChecker rateLimitChecker = new GitHubRateLimitChecker(); | ||||||
|
|
||||||
| private GitHubRateLimitHandler rateLimitHandler = GitHubRateLimitHandler.WAIT; | ||||||
|
|
@@ -189,7 +193,8 @@ public GitHub build() throws IOException { | |||||
| rateLimitHandler, | ||||||
| abuseLimitHandler, | ||||||
| rateLimitChecker, | ||||||
| authorizationProvider); | ||||||
| authorizationProvider, | ||||||
| jackson != null ? jackson : DefaultGitHubJackson.createDefault()); | ||||||
|
||||||
| jackson != null ? jackson : DefaultGitHubJackson.createDefault()); | |
| jackson); |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't have something in the internal package a public method.
I'd suggest just having DefaultGitHubJackson control this and not provide a public method to control this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with an alternative to keep the programmatic access option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.