File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/main/java/io/reactivex/observers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -230,9 +230,8 @@ public final U assertNoErrors() {
230
230
* @see #assertError(Class)
231
231
* @see #assertError(Predicate)
232
232
*/
233
- @ SuppressWarnings ("unchecked" )
234
233
public final U assertError (Throwable error ) {
235
- return ( U ) assertError (Functions .equalsWith (error ));
234
+ return assertError (Functions .equalsWith (error ));
236
235
}
237
236
238
237
/**
@@ -241,9 +240,9 @@ public final U assertError(Throwable error) {
241
240
* @param errorClass the error class to expect
242
241
* @return this;
243
242
*/
244
- @ SuppressWarnings ("unchecked" )
243
+ @ SuppressWarnings ({ "unchecked" , "rawtypes" } )
245
244
public final U assertError (Class <? extends Throwable > errorClass ) {
246
- return ( U ) assertError ((Predicate )Functions .isInstanceOf (errorClass ));
245
+ return assertError ((Predicate )Functions .isInstanceOf (errorClass ));
247
246
}
248
247
249
248
/**
You can’t perform that action at this time.
0 commit comments