Skip to content

Commit

Permalink
Fix imports, remove now-unnecessary animalsniffer suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Oct 1, 2016
1 parent d75a1f1 commit a6a6fd6
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@

package io.reactivex.internal.schedulers;

import io.reactivex.internal.util.SuppressAnimalSniffer;
import io.reactivex.plugins.RxJavaPlugins;

import java.util.ArrayList;
import java.util.Map;
import java.util.Properties;
import java.util.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicReference;

import io.reactivex.plugins.RxJavaPlugins;

/**
* Manages the creating of ScheduledExecutorServices and sets up purging.
*/
Expand Down Expand Up @@ -67,10 +64,9 @@ public static void start() {

next.scheduleAtFixedRate(new Runnable() {
@Override
@SuppressAnimalSniffer
public void run() {
try {
for (ScheduledThreadPoolExecutor e : new ArrayList<ScheduledThreadPoolExecutor>(POOLS.keySet())) { // CHM.keySet returns KeySetView in Java 8+; false positive here
for (ScheduledThreadPoolExecutor e : new ArrayList<ScheduledThreadPoolExecutor>(POOLS.keySet())) {
if (e.isShutdown()) {
POOLS.remove(e);
} else {
Expand Down

0 comments on commit a6a6fd6

Please sign in to comment.