Skip to content

Commit 52eb425

Browse files
committed
Fix reviewdog styling issues
1 parent 0b212e6 commit 52eb425

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/kobylynskyi/graphql/codegen/GraphQLCodegenOptionalTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.io.File;
1313
import java.io.IOException;
1414
import java.nio.file.Paths;
15+
import java.util.Collections;
1516
import java.util.HashMap;
1617
import java.util.Objects;
1718

@@ -105,9 +106,7 @@ void generate_OptionalFieldInInterfaceAndMandatoryInType() throws Exception {
105106
*/
106107
@Test
107108
void generate_ObjectsInsteadOfPrimitives() throws Exception {
108-
mappingConfig.setCustomTypesMapping(new HashMap<String, String>() {{
109-
put("Int!", "Integer");
110-
}});
109+
mappingConfig.setCustomTypesMapping(new HashMap<>(Collections.singletonMap("Int!", "Integer")));
111110
schemaFinder.setIncludePattern("optional-vs-mandatory-types.graphqls");
112111

113112
generate();

0 commit comments

Comments
 (0)