package com.byoutline.cachedfield.internal;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author Sebastian Kacprzak <sebastian.kacprzak at byoutline.com>
 */
public class DefaultExecutors {
    public static Executor createDefaultStateListenerExecutor() {
        // Execute on same thread.
        return new Executor() {
            @Override
            public void execute(Runnable command) {
                command.run();
            }
        };
    }

    public static ExecutorService createDefaultValueGetterExecutor() {
        return Executors.newCachedThreadPool();
    }
}

@@ -244,16 +244,22 @@
 %0Apublic 
+final 
 class De
@@ -275,16 +275,17 @@
 utors %7B%0A
+%0A
     publ

make DefaultExecutors class final, as it contains only static getters.