From ee20237c490c13efe814d6f28da76bb4b2a88c20 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:11:30 -0300 Subject: [PATCH] fix(demo): make demo classes serializable --- .../flowingcode/vaadin/addons/gridhelpers/LazyTestData.java | 4 +++- .../com/flowingcode/vaadin/addons/gridhelpers/Person.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/LazyTestData.java b/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/LazyTestData.java index 6d4a1da..fdf7b0e 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/LazyTestData.java +++ b/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/LazyTestData.java @@ -21,6 +21,7 @@ package com.flowingcode.vaadin.addons.gridhelpers; import com.github.javafaker.Faker; +import java.io.Serializable; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -28,7 +29,8 @@ import lombok.Setter; import org.apache.commons.lang3.StringUtils; -class LazyTestData { +@SuppressWarnings("serial") +class LazyTestData implements Serializable { private static final Faker faker = new Faker(); diff --git a/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/Person.java b/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/Person.java index b95dc00..d540d48 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/Person.java +++ b/src/test/java/com/flowingcode/vaadin/addons/gridhelpers/Person.java @@ -20,6 +20,7 @@ package com.flowingcode.vaadin.addons.gridhelpers; +import java.io.Serializable; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Builder; @@ -29,12 +30,13 @@ import lombok.experimental.FieldDefaults; import lombok.experimental.NonFinal; +@SuppressWarnings("serial") @Getter @AllArgsConstructor @FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true) @EqualsAndHashCode @Builder -public class Person { +public class Person implements Serializable { @Setter @NonFinal boolean active;