From: Aleksi Hietanen Date: Wed, 10 May 2017 10:02:06 +0000 (+0300) Subject: Make CollapseListener and ExpandListener extend SerializableEventListener X-Git-Tag: 8.1.0.alpha8~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60207377759e349c3010235b43e4e2593ce72930;p=vaadin-framework.git Make CollapseListener and ExpandListener extend SerializableEventListener --- diff --git a/server/src/main/java/com/vaadin/event/CollapseEvent.java b/server/src/main/java/com/vaadin/event/CollapseEvent.java index f0ba6d1907..78da8d1529 100644 --- a/server/src/main/java/com/vaadin/event/CollapseEvent.java +++ b/server/src/main/java/com/vaadin/event/CollapseEvent.java @@ -15,7 +15,6 @@ */ package com.vaadin.event; -import java.io.Serializable; import java.lang.reflect.Method; import com.vaadin.ui.Component; @@ -82,7 +81,7 @@ public class CollapseEvent extends Component.Event { * @since 8.1 */ @FunctionalInterface - public interface CollapseListener extends Serializable { + public interface CollapseListener extends SerializableEventListener { public static final Method COLLAPSE_METHOD = ReflectTools.findMethod( CollapseListener.class, "itemCollapse", CollapseEvent.class); diff --git a/server/src/main/java/com/vaadin/event/ExpandEvent.java b/server/src/main/java/com/vaadin/event/ExpandEvent.java index ce11bd4d8c..5340489ee2 100644 --- a/server/src/main/java/com/vaadin/event/ExpandEvent.java +++ b/server/src/main/java/com/vaadin/event/ExpandEvent.java @@ -15,7 +15,6 @@ */ package com.vaadin.event; -import java.io.Serializable; import java.lang.reflect.Method; import com.vaadin.ui.Component; @@ -81,7 +80,7 @@ public class ExpandEvent extends Component.Event { * @since 8.1 */ @FunctionalInterface - public interface ExpandListener extends Serializable { + public interface ExpandListener extends SerializableEventListener { public static final Method EXPAND_METHOD = ReflectTools.findMethod( ExpandListener.class, "itemExpand", ExpandEvent.class);