Skip to content

Commit 8fb8472

Browse files
author
Thomas Draier
committed
Renamed method
1 parent 7bfd8ce commit 8fb8472

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/graphql/annotations/GraphQLAnnotations.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ private GraphQLOutputType internalGetGraphQLConnection(AccessibleObject field, G
588588
GraphQLOutputType wrappedType = (GraphQLOutputType) listType.getWrappedType();
589589
String connectionName = field.getAnnotation(GraphQLConnection.class).name();
590590
connectionName = connectionName.isEmpty() ? wrappedType.getName() : connectionName;
591-
GraphQLObjectType edgeType = ensureTypeUniqueness(relay.edgeType(connectionName, wrappedType, null, Collections.<GraphQLFieldDefinition>emptyList()));
592-
return ensureTypeUniqueness(relay.connectionType(connectionName, edgeType, Collections.emptyList()));
591+
GraphQLObjectType edgeType = getActualType(relay.edgeType(connectionName, wrappedType, null, Collections.<GraphQLFieldDefinition>emptyList()));
592+
return getActualType(relay.connectionType(connectionName, edgeType, Collections.emptyList()));
593593
}
594594

595-
private GraphQLObjectType ensureTypeUniqueness(GraphQLObjectType type) {
595+
private GraphQLObjectType getActualType(GraphQLObjectType type) {
596596
if (typeRegistry.containsKey(type.getName())) {
597597
type = (GraphQLObjectType) typeRegistry.get(type.getName());
598598
} else {

0 commit comments

Comments
 (0)