File tree 1 file changed +9
-5
lines changed
src/main/java/io/reactivex/internal/schedulers
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package io .reactivex .internal .schedulers ;
18
18
19
- import java .util .*;
20
- import java .util .concurrent .*;
21
- import java .util .concurrent .atomic .AtomicReference ;
22
-
23
19
import io .reactivex .internal .util .SuppressAnimalSniffer ;
24
20
import io .reactivex .plugins .RxJavaPlugins ;
25
21
22
+ import java .util .ArrayList ;
23
+ import java .util .Map ;
24
+ import java .util .Properties ;
25
+ import java .util .concurrent .*;
26
+ import java .util .concurrent .atomic .AtomicReference ;
27
+
26
28
/**
27
29
* Manages the creating of ScheduledExecutorServices and sets up purging.
28
30
*/
@@ -46,7 +48,9 @@ public enum SchedulerPoolFactory {
46
48
static final AtomicReference <ScheduledExecutorService > PURGE_THREAD =
47
49
new AtomicReference <ScheduledExecutorService >();
48
50
49
- static final ConcurrentHashMap <ScheduledThreadPoolExecutor , Object > POOLS =
51
+ // Upcast to the Map interface here to avoid 8.x compatibility issues.
52
+ // See http://stackoverflow.com/a/32955708/61158
53
+ static final Map <ScheduledThreadPoolExecutor , Object > POOLS =
50
54
new ConcurrentHashMap <ScheduledThreadPoolExecutor , Object >();
51
55
52
56
/**
You can’t perform that action at this time.
0 commit comments