Skip to content

2.x: RxJavaPlugin.get/setXXX generics? #5045

Closed
@davidmoten

Description

@davidmoten

For unit tests I frequently bump into the restrictiveness of

RxJavaPlugins.setErrorHandler(Consumer<Throwable> handler);

I would like the signature to be

RxJavaPlugins.setErrorHandler(Consumer<? super Throwable> handler);

There are many more methods in RxJavaPlugins that could support lower and upper bounded wildcards. Can I make these changes?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions