Nested static classes are detected as checkstyle violations if they are
not final. Fix that.
Change-Id: Ifa5878890cabe845ecf8d98d46f2fc8015a78770
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
/**
* if the max threads are met, then it will raise a rejectedExecution. We then push to the queue.
*/
- private static class FlexibleRejectionHandler implements RejectedExecutionHandler {
+ private static final class FlexibleRejectionHandler implements RejectedExecutionHandler {
@Override
@SuppressWarnings("checkstyle:parameterName")
public void rejectedExecution(final Runnable r, final ThreadPoolExecutor executor) {
}
}
- private static class ForwardingBlockingQueue
+ private static final class ForwardingBlockingQueue
extends com.google.common.util.concurrent.ForwardingBlockingQueue<Runnable> {
private final BlockingQueue<Runnable> delegate;