Skip to content

Commit

Permalink
fix(demo): make demo classes serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and mlopezFC committed Apr 3, 2024
1 parent 05fd5c9 commit 2c2c65a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@
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;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

class LazyTestData {
@SuppressWarnings("serial")
class LazyTestData implements Serializable {

private static final Faker faker = new Faker();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

package com.flowingcode.vaadin.addons.gridhelpers;

import java.io.Serializable;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand All @@ -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;
Expand Down

0 comments on commit 2c2c65a

Please sign in to comment.