import java.util.concurrent.TimeUnit;
/**
- * A simple ScheduledExecutorService, which shutds down its threads after a period of inactivity. It is safe to not
+ * A simple ScheduledExecutorService, which shuts down its threads after a period of inactivity. It is safe to not
* shutdown this
*
* @author Robert Varga
// This is a bit ugly, but allows
@Override
+ @SuppressWarnings("checkstyle:NoFinalizer")
protected void finalize() {
+ super.finalize();
super.shutdownNow();
}
}