We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667032c commit 5c47366Copy full SHA for 5c47366
src/main/java/io/reactivex/observers/BaseTestConsumer.java
@@ -240,9 +240,9 @@ public final U assertError(Throwable error) {
240
* @param errorClass the error class to expect
241
* @return this;
242
*/
243
- @SuppressWarnings({ "unchecked", "rawtypes" })
+ @SuppressWarnings({ "unchecked", "rawtypes", "cast" })
244
public final U assertError(Class<? extends Throwable> errorClass) {
245
- return assertError((Predicate)Functions.isInstanceOf(errorClass));
+ return (U)assertError((Predicate)Functions.isInstanceOf(errorClass));
246
}
247
248
/**
0 commit comments