From 60207377759e349c3010235b43e4e2593ce72930 Mon Sep 17 00:00:00 2001 From: Aleksi Hietanen Date: Wed, 10 May 2017 13:02:06 +0300 Subject: [PATCH] Make CollapseListener and ExpandListener extend SerializableEventListener --- server/src/main/java/com/vaadin/event/CollapseEvent.java | 3 +-- server/src/main/java/com/vaadin/event/ExpandEvent.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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); -- 2.39.5