Skip to content

Commit 700ab97

Browse files
Adding more meaningful comments and removing unused standard scalar list
1 parent d3d30d3 commit 700ab97

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/main/java/graphql/schema/idl/ScalarInfo.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
* Info on all the standard scalar objects provided by graphql-java
1414
*/
1515
public class ScalarInfo {
16-
/**
17-
* A list of the scalar types provided by graphql-java
18-
*/
19-
public static final List<GraphQLScalarType> STANDARD_SCALARS = new ArrayList<>();
2016

2117
/**
2218
* A list of the built-in scalar types as defined by the graphql specification

src/test/groovy/graphql/schema/idl/SchemaParserTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class SchemaParserTest extends Specification {
114114
typeExtensions.size() == 1
115115
typeExtensions.get("Query") != null
116116

117-
scalarTypes.size() == 6 // includes standard scalars
117+
scalarTypes.size() == 6 // only contains the 5 graphql standard types and URL
118118
scalarTypes.get("Url") instanceof ScalarTypeDefinition
119119

120120

0 commit comments

Comments
 (0)