protected void afterExecute()

in src/main/java/org/apache/sling/commons/threads/impl/ThreadPoolExecutorCleaningThreadLocals.java [63:74]


    protected void afterExecute(Runnable r, Throwable t) {
        super.afterExecute(r, t);
        
        LOGGER.debug("Cleaning up thread locals for thread {}...", Thread.currentThread());
        ThreadLocalCleaner cleaner = cleaners.remove(Thread.currentThread());

        if (cleaner != null) {
            cleaner.cleanup();
        } else {
            LOGGER.warn("Could not clean up thread locals in thread {} as the cleaner was not set up correctly", Thread.currentThread());
        }
    }