Skip to content

Overload GoogleCredentials.createScoped with variadic arguments#218

Merged
chingor13 merged 2 commits intogoogleapis:masterfrom
chingor13:overload-create-scoped
Dec 28, 2018
Merged

Overload GoogleCredentials.createScoped with variadic arguments#218
chingor13 merged 2 commits intogoogleapis:masterfrom
chingor13:overload-create-scoped

Conversation

@chingor13
Copy link
Copy Markdown
Contributor

Fixes #5

@chingor13 chingor13 requested a review from a team 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
Copy Markdown
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