Skip to content

Commit 154fe09

Browse files
committed
2.x: fix imports and raw type usage.
1 parent 217c8c2 commit 154fe09

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

src/test/java/io/reactivex/plugins/RxJavaPluginsTest.java

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,26 @@
1616

1717
package io.reactivex.plugins;
1818

19+
import static org.junit.Assert.*;
20+
21+
import java.io.IOException;
22+
import java.lang.Thread.UncaughtExceptionHandler;
23+
import java.lang.reflect.*;
24+
import java.util.*;
25+
import java.util.concurrent.*;
26+
import java.util.concurrent.atomic.*;
27+
28+
import org.junit.*;
29+
import org.reactivestreams.*;
30+
1931
import io.reactivex.*;
32+
import io.reactivex.Observable;
33+
import io.reactivex.Observer;
2034
import io.reactivex.Scheduler.Worker;
21-
import io.reactivex.disposables.Disposable;
22-
import io.reactivex.disposables.Disposables;
35+
import io.reactivex.disposables.*;
2336
import io.reactivex.exceptions.TestException;
2437
import io.reactivex.flowables.ConnectableFlowable;
25-
import io.reactivex.functions.BiFunction;
26-
import io.reactivex.functions.BooleanSupplier;
27-
import io.reactivex.functions.Consumer;
28-
import io.reactivex.functions.Function;
38+
import io.reactivex.functions.*;
2939
import io.reactivex.internal.functions.Functions;
3040
import io.reactivex.internal.operators.completable.CompletableError;
3141
import io.reactivex.internal.operators.flowable.FlowableRange;
@@ -38,23 +48,6 @@
3848
import io.reactivex.observables.ConnectableObservable;
3949
import io.reactivex.parallel.ParallelFlowable;
4050
import io.reactivex.schedulers.Schedulers;
41-
import org.junit.*;
42-
import org.reactivestreams.Subscriber;
43-
import org.reactivestreams.Subscription;
44-
45-
import java.io.IOException;
46-
import java.lang.Thread.UncaughtExceptionHandler;
47-
import java.lang.reflect.InvocationTargetException;
48-
import java.lang.reflect.Method;
49-
import java.util.ArrayList;
50-
import java.util.List;
51-
import java.util.concurrent.Callable;
52-
import java.util.concurrent.CountDownLatch;
53-
import java.util.concurrent.ThreadFactory;
54-
import java.util.concurrent.atomic.AtomicInteger;
55-
import java.util.concurrent.atomic.AtomicReference;
56-
57-
import static org.junit.Assert.*;
5851

5952
public class RxJavaPluginsTest {
6053

@@ -1178,8 +1171,10 @@ public void uncaughtException(Thread t, Throwable e) {
11781171

11791172
/**
11801173
* Ensure set*() accepts a consumers/functions with wider bounds
1174+
* @throws Exception on error
11811175
*/
11821176
@Test
1177+
@SuppressWarnings("rawtypes")
11831178
public void onErrorWithSuper() throws Exception {
11841179
try {
11851180
Consumer<? super Throwable> errorHandler = new Consumer<Throwable>() {

src/test/java/io/reactivex/schedulers/NewThreadSchedulerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public void run() {
118118

119119
/**
120120
* Regression test to ensure there is no NPE when the worker has been disposed
121+
* @throws Exception on error
121122
*/
122123
@Test
123124
public void npeRegression() throws Exception {

0 commit comments

Comments
 (0)