Skip to content

Commit b31d4c1

Browse files
committed
little cleanup
1 parent 2221e19 commit b31d4c1

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

src/main/java/graphql/ExecutionResultImpl.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@
77

88
public class ExecutionResultImpl implements ExecutionResult {
99

10-
private Map<String, Object> data;
11-
1210
private final List<GraphQLError> errors = new ArrayList<>();
13-
14-
public void addErrors(List<? extends GraphQLError> errors) {
15-
this.errors.addAll(errors);
16-
}
11+
private Map<String, Object> data;
1712

1813
public ExecutionResultImpl(List<? extends GraphQLError> errors) {
1914
this.errors.addAll(errors);
@@ -24,17 +19,19 @@ public ExecutionResultImpl(Map<String, Object> data, List<? extends GraphQLError
2419
this.errors.addAll(errors);
2520
}
2621

27-
28-
public void setData(Map<String, Object> result) {
29-
this.data = result;
22+
public void addErrors(List<? extends GraphQLError> errors) {
23+
this.errors.addAll(errors);
3024
}
3125

32-
3326
@Override
3427
public Map<String, Object> getData() {
3528
return data;
3629
}
3730

31+
public void setData(Map<String, Object> result) {
32+
this.data = result;
33+
}
34+
3835
@Override
3936
public List<GraphQLError> getErrors() {
4037
return new ArrayList<>(errors);

0 commit comments

Comments
 (0)