Skip to content

Commit 667032c

Browse files
committed
Cleanup warnings
1 parent d6a8461 commit 667032c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,8 @@ public final U assertNoErrors() {
230230
* @see #assertError(Class)
231231
* @see #assertError(Predicate)
232232
*/
233-
@SuppressWarnings("unchecked")
234233
public final U assertError(Throwable error) {
235-
return (U)assertError(Functions.equalsWith(error));
234+
return assertError(Functions.equalsWith(error));
236235
}
237236

238237
/**
@@ -241,9 +240,9 @@ public final U assertError(Throwable error) {
241240
* @param errorClass the error class to expect
242241
* @return this;
243242
*/
244-
@SuppressWarnings("unchecked")
243+
@SuppressWarnings({ "unchecked", "rawtypes" })
245244
public final U assertError(Class<? extends Throwable> errorClass) {
246-
return (U)assertError((Predicate)Functions.isInstanceOf(errorClass));
245+
return assertError((Predicate)Functions.isInstanceOf(errorClass));
247246
}
248247

249248
/**

0 commit comments

Comments
 (0)