From 8328525cf12f03a98e21bb375afdeaee22ff7720 Mon Sep 17 00:00:00 2001 From: Michiel Oliemans Date: Fri, 25 Dec 2020 16:19:28 +0100 Subject: [PATCH] Add default to switch statement --- .../spring/web/boot/sample/SimpleListConnection.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/example-spring-common/src/main/java/graphql/kickstart/spring/web/boot/sample/SimpleListConnection.java b/example-spring-common/src/main/java/graphql/kickstart/spring/web/boot/sample/SimpleListConnection.java index c4552ddd..bde31747 100644 --- a/example-spring-common/src/main/java/graphql/kickstart/spring/web/boot/sample/SimpleListConnection.java +++ b/example-spring-common/src/main/java/graphql/kickstart/spring/web/boot/sample/SimpleListConnection.java @@ -8,19 +8,18 @@ import java.util.ArrayList; import java.util.Base64; import java.util.List; +import lombok.AccessLevel; +import lombok.RequiredArgsConstructor; /** * @author oEmbedler Inc. */ +@RequiredArgsConstructor(access = AccessLevel.PROTECTED) public abstract class SimpleListConnection { private static final String DUMMY_CURSOR_PREFIX = "simple-cursor"; private final List data; - protected SimpleListConnection(List data) { - this.data = data; - } - public abstract > E createEdgeObject(); public abstract , ? extends PageInfoObjectType>> C createConnectionObject();