Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 8328525

Browse files
committed
Add default to switch statement
1 parent 8ce86c7 commit 8328525

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

example-spring-common/src/main/java/graphql/kickstart/spring/web/boot/sample/SimpleListConnection.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@
88
import java.util.ArrayList;
99
import java.util.Base64;
1010
import java.util.List;
11+
import lombok.AccessLevel;
12+
import lombok.RequiredArgsConstructor;
1113

1214
/**
1315
* @author <a href="mailto:[email protected]">oEmbedler Inc.</a>
1416
*/
17+
@RequiredArgsConstructor(access = AccessLevel.PROTECTED)
1518
public abstract class SimpleListConnection<T> {
1619

1720
private static final String DUMMY_CURSOR_PREFIX = "simple-cursor";
1821
private final List<T> data;
1922

20-
protected SimpleListConnection(List<T> data) {
21-
this.data = data;
22-
}
23-
2423
public abstract <E extends EdgeObjectType<T>> E createEdgeObject();
2524

2625
public abstract <C extends ConnectionObjectType<? extends EdgeObjectType<T>, ? extends PageInfoObjectType>> C createConnectionObject();

0 commit comments

Comments
 (0)