Skip to content

Commit 8717fad

Browse files
author
Thomas Draier
committed
Renamed variable to actualType
1 parent cf3921b commit 8717fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@ private boolean isConnection(AccessibleObject obj, GraphQLOutputType type) {
600600
if (type instanceof GraphQLNonNull) {
601601
type = (GraphQLOutputType) ((GraphQLNonNull) type).getWrappedType();
602602
}
603-
final GraphQLOutputType wrappedType = type;
603+
final GraphQLOutputType actualType = type;
604604
return obj.isAnnotationPresent(GraphQLConnection.class) &&
605-
wrappedType instanceof GraphQLList && TYPES_FOR_CONNECTION.stream().anyMatch(aClass -> aClass.isInstance(((GraphQLList) wrappedType).getWrappedType()));
605+
actualType instanceof GraphQLList && TYPES_FOR_CONNECTION.stream().anyMatch(aClass -> aClass.isInstance(((GraphQLList) actualType).getWrappedType()));
606606
}
607607

608608
protected GraphQLFieldDefinition getField(Method method) throws GraphQLAnnotationsException {

0 commit comments

Comments
 (0)