diff --git a/spring-graphql/src/main/java/org/springframework/graphql/execution/ClassNameTypeResolver.java b/spring-graphql/src/main/java/org/springframework/graphql/execution/ClassNameTypeResolver.java index 73c73295..c6881521 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/execution/ClassNameTypeResolver.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/execution/ClassNameTypeResolver.java @@ -29,8 +29,8 @@ import org.springframework.util.Assert; /** * {@link TypeResolver} that tries to find a GraphQL Object type based on the - * class name of an Object. If necessary, it walks up the base class and - * interface hierarchy to find a match. + * class name of a value returned from a {@code DataFetcher}. If necessary, it + * walks up the base class and interface hierarchy to find a match. * * @author Rossen Stoyanchev * @since 1.0.0 @@ -43,10 +43,10 @@ public class ClassNameTypeResolver implements TypeResolver { /** - * Customize how the name of a class, or base class/interface, is determined. + * Customize how the name of a class, or a base class/interface, is determined. * An application can use this to adapt to a common naming convention, e.g. - * removing "Impl" as a suffix, or "Base" as prefix, and so on. - *
By default, this is {@link Class#getSimpleName()}. + * remove an "Impl" suffix or a "Base" prefix, and so on. + *
By default, this is just {@link Class#getSimpleName()}.
* @param classNameExtractor the function to use
*/
public void setClassNameExtractor(Function