8059591: Give TaskListener methods empty default implementations

Added empty default implementations for TaskListener methods.

Reviewed-by: jfranck, ohrstrom
This commit is contained in:
Andreas Lundblad 2014-11-13 14:49:02 +01:00
parent b136af5563
commit e404341a88

View File

@ -37,13 +37,19 @@ public interface TaskListener
{
/**
* Invoked when an event has begun.
*
* @implSpec The default implementation of this method does nothing.
*
* @param e the event
*/
public void started(TaskEvent e);
default void started(TaskEvent e) { }
/**
* Invoked when an event has been completed.
*
* @implSpec The default implementation of this method does nothing.
*
* @param e the event
*/
public void finished(TaskEvent e);
default void finished(TaskEvent e) { }
}