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

Commit 5dfbc82

Browse files
authored
Merge pull request #407 from BlasiusSecundus/feature/fix-build-error
Fix compile error because of missing constructor
2 parents 9712d3d + f32f7ae commit 5dfbc82

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

graphql-kickstart-spring-boot-autoconfigure-tools/src/main/java/graphql/kickstart/tools/boot/GraphQLJavaToolsAutoConfiguration.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
import org.springframework.context.annotation.Bean;
3636
import org.springframework.context.annotation.Configuration;
3737

38+
import static java.util.Objects.nonNull;
39+
3840
/**
3941
* @author Andrew Potter
4042
*/
@@ -123,8 +125,10 @@ public SchemaParser schemaParser(
123125
SchemaStringProvider schemaStringProvider,
124126
SchemaParserOptions.Builder optionsBuilder
125127
) throws IOException {
126-
SchemaParserBuilder builder = dictionary != null ? new SchemaParserBuilder(dictionary) : new SchemaParserBuilder();
127-
128+
SchemaParserBuilder builder = new SchemaParserBuilder();
129+
if (nonNull(dictionary)) {
130+
builder.dictionary(dictionary.getDictionary());
131+
}
128132
List<String> schemaStrings = schemaStringProvider.schemaStrings();
129133
schemaStrings.forEach(builder::schemaString);
130134

0 commit comments

Comments
 (0)