davidmoten / rxjava-extras

Utilities for use with rxjava
Apache License 2.0
269 stars 27 forks source link

RetryWhen.retryWhenInstanceOf produces java warning #33

Closed rowysock closed 5 years ago

rowysock commented 5 years ago

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

rowysock commented 5 years ago

Wrong repo, closing