Skip to content

Commit 5c47366

Browse files
committed
Force cast to U again
1 parent 667032c commit 5c47366

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/reactivex/observers/BaseTestConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ public final U assertError(Throwable error) {
240240
* @param errorClass the error class to expect
241241
* @return this;
242242
*/
243-
@SuppressWarnings({ "unchecked", "rawtypes" })
243+
@SuppressWarnings({ "unchecked", "rawtypes", "cast" })
244244
public final U assertError(Class<? extends Throwable> errorClass) {
245-
return assertError((Predicate)Functions.isInstanceOf(errorClass));
245+
return (U)assertError((Predicate)Functions.isInstanceOf(errorClass));
246246
}
247247

248248
/**

0 commit comments

Comments
 (0)