Skip to content

Commit 353668e

Browse files
committed
This makes the ENF code public - more tweaks
1 parent ee4e67c commit 353668e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/graphql/normalized/ExecutableNormalizedField.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private ExecutableNormalizedField(Builder builder) {
7575
}
7676

7777
/**
78-
* Determines whether this NF needs a fragment to select the field. However, it considers the parent
78+
* Determines whether this {@link ExecutableNormalizedField} needs a fragment to select the field. However, it considers the parent
7979
* output type when determining whether it needs a fragment.
8080
* <p>
8181
* Consider the following schema
@@ -111,7 +111,7 @@ private ExecutableNormalizedField(Builder builder) {
111111
* }
112112
* </pre>
113113
* <p>
114-
* Then we would get the following normalized operation tree
114+
* Then we would get the following {@link ExecutableNormalizedOperation}
115115
*
116116
* <pre>
117117
* -Query.animal: Animal
@@ -124,18 +124,19 @@ private ExecutableNormalizedField(Builder builder) {
124124
* our question whether this is conditional?
125125
* <p>
126126
* We MUST consider that the output type of the {@code parent} field is {@code Animal} and
127-
* NOT {@code Cat} or {@code Dog} as their respective impls would say.
127+
* NOT {@code Cat} or {@code Dog} as their respective implementations would say.
128128
*
129129
* @param schema - the graphql schema in play
130130
*
131131
* @return true if the field is conditional
132132
*/
133+
@SuppressWarnings({"unchecked", "rawtypes"})
133134
public boolean isConditional(@NotNull GraphQLSchema schema) {
134135
if (parent == null) {
135136
return false;
136137
}
137138

138-
/**
139+
/*
139140
* checking if we have an interface which can be used as an unconditional parent type
140141
*/
141142
ImmutableList<GraphQLType> parentTypes = ImmutableKit.map(parent.getFieldDefinitions(schema), fd -> unwrapAll(fd.getType()));
@@ -206,8 +207,7 @@ public GraphQLOutputType getType(GraphQLSchema schema) {
206207
}
207208

208209
public List<GraphQLOutputType> getTypes(GraphQLSchema schema) {
209-
List<GraphQLOutputType> fieldTypes = ImmutableKit.map(getFieldDefinitions(schema), fd -> fd.getType());
210-
return fieldTypes;
210+
return ImmutableKit.map(getFieldDefinitions(schema), fd -> fd.getType());
211211
}
212212

213213

0 commit comments

Comments
 (0)