Why is Thread.start()
not final
?
Are you sure you would never want to override it?
Class MyThreadFactory implements ThreadFactory {
@Override
public Thread newThread(Runnable r) {
return new Thread(r) {
@Override
public void start() {
LOGGER.info("Starting thread " + this);
super.start();
}
};
}
}