Skip to content

3.x: Add missing NonNull annotations to the standard methods #6766

Description

@akarnokd

Including the return type, parameters and type argument usages on lambdas.

  • Flowable
  • Observable
  • Maybe
  • Single
  • Completable
  • ParallelFlowable

Please do them in separate PRs.

Activity

  1. added this to the 3.0 milestone on Dec 17, 2019
  2. self-assigned this
    on Dec 23, 2019
  3. akarnokd commented on Jan 10, 2020

    @akarnokd
    MemberAuthor

    We can annotate the type arguments on our base interfaces and those should be enough for most of the usage places, however, some 3rd party interfaces need explicit annotations:

    • Publisher<@NonNull
    • Iterable<@NonNull
    • Stream<@NonNull

    The original pattern could be Type<AnotherType or Type<? extends locations.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions