Skip to content

fix: change QueryPagingSource() parameter order to support trailing l… #5585

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

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

Conversation

bubenheimer
Copy link

…ambda syntax again

Fixes #4869

@bubenheimer bubenheimer force-pushed the QueryPagingSource_param_order branch from c3eb0d5 to 75d09ae Compare December 13, 2024 20:31
@bubenheimer
Copy link
Author

Tests failed because IDE reformatted lines during automated refactor. Fixed.

@JakeWharton
Copy link
Collaborator

This seems like a binary-incompatible change, though.

@bubenheimer
Copy link
Author

bubenheimer commented Dec 13, 2024

This seems like a binary-incompatible change, though.

I believe so.

The original PR #4802 from 2.0.1 forced me to refactor my code due to moving the lambda in the wrong place, despite alleged binary compatibility from @JvmOverloads.

Not sure why the original PR did not use this order, wouldn't that have equally retained binary compatibility at the time?

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

Successfully merging this pull request may close these issues.

Mandatory lambda parameter is after an optional parameter in QueryPagingSource
2 participants