Skip to content
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

Import String.format method statically #258

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Import String.format method statically #258

merged 1 commit into from
Feb 21, 2024

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Feb 17, 2024

No description provided.

@cla-bot cla-bot bot added the cla-signed label Feb 17, 2024
@ebyhr ebyhr added maintenance Project maintenance task no-release-notes This pull request does not require release notes entry labels Feb 17, 2024
@ebyhr ebyhr requested a review from willmostly February 19, 2024 00:59
Copy link
Contributor

@willmostly willmostly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I suggested one additional place to unwrap lines, but feel free to ignore it if it makes the code less readable.

@@ -111,7 +110,7 @@ public Response getAuthorizationCode()
String clientId = oauthConfig.getClientId();
String redirectUrl = oauthConfig.getRedirectUrl();
String scopes = String.join("+", oauthConfig.getScopes());
String url = String.format(
String url = format(
"%s?client_id=%s&response_type=code&redirect_uri=%s&scope=%s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be unwrapped? Line length should be 146 characters, which is less than RIGHT_MARGIN

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should be, but I didn't touch as unrelated to import.

@ebyhr ebyhr merged commit cee722a into trinodb:main Feb 21, 2024
2 checks passed
@ebyhr ebyhr deleted the ebi/string-format branch February 21, 2024 23:30
@github-actions github-actions bot added this to the 7 milestone Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed maintenance Project maintenance task no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

2 participants