davidmoten / davidmoten/rxjava2-extras

RetryWhen.retryWhenInstanceOf produces java warning

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
172
Forks
17
PR merge metrics
No merged PRs in 30d

Description

RetryWhen.retryWhenInstanceOf has vararg parameter with generic type, this produces Java warning in code that is using this method. https://docs.oracle.com/javase/tutorial/java/generics/nonReifiableVarargsType.html#vulnerabilities.
It should be enough to add @SafeVarargs to RetryWhen.retryWhenInstanceOf method
Also possible workaround is to use retryIf(e -> e instanceOf X) instead

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.