diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/source/util/TaskListener.java b/langtools/src/jdk.compiler/share/classes/com/sun/source/util/TaskListener.java index 7c8f81a6076..9a57b134add 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/source/util/TaskListener.java +++ b/langtools/src/jdk.compiler/share/classes/com/sun/source/util/TaskListener.java @@ -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) { } }