-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
API suggestion - RequestOptions #2875
Labels
Comments
Using varargs allocates an extra array, but you can solve that with an additional overload. If you want to send a pull request it should:
You won't need to do any bounds checking because the single argument method overload will be used if only one item is passed in anyway. |
aleien
added a commit
to aleien/glide
that referenced
this issue
Oct 20, 2018
aleien
added a commit
to aleien/glide
that referenced
this issue
Oct 20, 2018
sjudd
pushed a commit
that referenced
this issue
Oct 26, 2018
I think this issue was meant to be closed with the merge... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Glide Version: 4.5
Integration libraries: -
Device/Android Version: LL
Issue details / Repro steps / Use case background:
Current
RequestOptions
differentiate between one and multiple transformations. Why? I see that internally the transformations are handled by aMultiTransformation
if multiple transformations are used, but this could be totally hidden from the user I think. Additional, currently a unnecessaryMultiTransformation
object is created if only one transformation is passed to thetransforms
functionSuggestion
Why not change the API to look like following (combine
transform
andtransforms
):Usage before
This way as a user using an array (potentially empty) I could change following:
Usage after
The text was updated successfully, but these errors were encountered: