-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make AuthConfig fluent, setters -> with. #454
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
Conversation
|
I failed checkstyle :) |
| } | ||
|
|
||
| public void setServerAddress(String serverAddress) { | ||
| public AuthConfig withServerAddress(String serverAddress) { |
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.
Not sure if this should be included in this PR but I suggest to rename method to withRegistryUrl. WDYT?
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 think it not url, it just addr:port. Probably withRegistryAddr is better
|
@marcuslinke added as separate commit |
| } | ||
|
|
||
| public void setServerAddress(String serverAddress) { | ||
| public AuthConfig withRegistryAddres(String serverAddress) { |
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.
found typo :)
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.
rename argument also please
|
:E done |
This is more correct as auth used only for pull/push operations.
|
LGTM. Feel free to merge! |
Make AuthConfig fluent, setters -> with.
Resolves #453