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

Remove @NonNull annotation from Collector container type parameter. #7590

Merged
merged 1 commit into from
Aug 23, 2023

Commits on Aug 21, 2023

  1. Remove @NonNull annotation from Collector container type parameter.

    `collect` delegates to `FlowableCollectWithCollectorSingle`, which does
    is not annotated to require a non-nullable type for its corresponding
    type parameter and whose implementation works fine with a null
    container.
    
    This PR lets Kotlin code pass a `Collector<T, A, R>`, where `A` is
    declared as `<A: Any?>`.
    cpovirk committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    76340d9 View commit details
    Browse the repository at this point in the history