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

Add iterable overloads for parameterized parameters #788

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JakeWharton
Copy link
Member

Closes #727. Closes #781.

This, admittedly, isn't the greatest implementation. But it's the easiest.

for (Type typeArgument : typeArguments) {
typeArgumentsList.add(typeArgument);
}
return get(rawType, typeArgumentsList.toArray(new Type[0]));
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't #788 (comment) apply here too? Seems like the same code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, NVM -- I see the translation that happens in list().

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah fixing that quickly spirals outward into more of the codebase. I'm happy to pursue such a change, but we can do so separately. Plus, this isn't particularly performance sensitive code so I figured it wasn't worth the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ParameterizedTypeName ergnomic improvements
3 participants