Skip to content

Commit a6107f5

Browse files
author
Lucian Burja
committed
Remove UNCHECKED_CAST
1 parent 87494c7 commit a6107f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/coxautodev/graphql/tools/SchemaParser.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ class SchemaParser internal constructor(scanResult: ScannedSchemaObjects, privat
128128

129129
val additionalObjects = objects.filter { o -> o != query && o != subscription && o != mutation }
130130

131-
@Suppress("UNCHECKED_CAST") val dictionary = (additionalObjects + inputObjects + enums + interfaces + unions).toSet() as Set<GraphQLType>
132-
return SchemaObjects(query, mutation, subscription, dictionary, codeRegistryBuilder)
131+
val types = (additionalObjects.toSet() as Set<GraphQLType>) + inputObjects + enums + interfaces + unions
132+
return SchemaObjects(query, mutation, subscription, types, codeRegistryBuilder)
133133
}
134134

135135
/**

0 commit comments

Comments
 (0)