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

Overload GoogleCredentials.createScoped with variadic arguments #218

Merged
merged 2 commits into from
Dec 28, 2018
Merged

Overload GoogleCredentials.createScoped with variadic arguments #218

merged 2 commits into from
Dec 28, 2018

Conversation

chingor13
Copy link
Contributor

Fixes #5

@chingor13 chingor13 requested a review from a team as a code owner December 19, 2018 22:44
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 19, 2018
@chingor13 chingor13 merged commit 9f40bc7 into googleapis:master Dec 28, 2018
@chingor13 chingor13 deleted the overload-create-scoped branch December 28, 2018 18:45
* @return GoogleCredentials with requested scopes.
*/
public GoogleCredentials createScoped(String... scopes) {
return createScoped(scopes);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this will just call itself, eventually resulting in a stack overflow.

Perhaps this should be:

return createScoped(ImmutableList.copyOf(scopes));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants