--- old/src/share/classes/java/nio/file/WatchEvent.java Wed Jan 26 14:11:14 2011 +++ new/src/share/classes/java/nio/file/WatchEvent.java Wed Jan 26 14:11:13 2011 @@ -44,7 +44,7 @@ * @since 1.7 */ -public abstract class WatchEvent { +public interface WatchEvent { /** * An event kind, for the purposes of identification. @@ -65,11 +65,6 @@ } /** - * Initializes a new instance of this class. - */ - protected WatchEvent() { } - - /** * An event modifier that qualifies how a {@link Watchable} is registered * with a {@link WatchService}. * @@ -90,7 +85,7 @@ * * @return the event kind */ - public abstract Kind kind(); + Kind kind(); /** * Returns the event count. If the event count is greater than {@code 1} @@ -98,7 +93,7 @@ * * @return the event count */ - public abstract int count(); + int count(); /** * Returns the context for the event. @@ -112,5 +107,5 @@ * * @return the event context; may be {@code null} */ - public abstract T context(); + T context(); }