提交 a2186df7 编写于 作者: B Bogdan Kobylynskyi

Minor sonar fixes

上级 a9ea3b82
......@@ -88,7 +88,6 @@ class GraphQLDocumentParser {
populateDefinition(extendedDocumentBuilder.interfaceDefinitions, definition, definitionName,
InterfaceTypeExtensionDefinition.class, s -> new ExtendedInterfaceTypeDefinition());
}
// TODO: consider DirectiveDefinition
}
@SuppressWarnings("unchecked")
......
......@@ -262,7 +262,7 @@ class GraphqlTypeToJavaTypeMapper {
// in case it is subscription and subscriptionReturnType is set
return getGenericsString(mappingContext.getSubscriptionReturnType(), javaTypeName);
}
} else if (mappingContext.getUseOptionalForNullableReturnTypes()) {
} else if (Boolean.TRUE.equals(mappingContext.getUseOptionalForNullableReturnTypes())) {
// wrap the type into java.util.Optional (except lists)
if (!namedDefinition.isMandatory() && !javaTypeName.startsWith(JAVA_UTIL_LIST)) {
return getGenericsString(JAVA_UTIL_OPTIONAL, javaTypeName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册