Polishing.

Fix naming.

Original Pull Request: #2940
This commit is contained in:
Mark Paluch
2023-11-08 11:39:42 +01:00
committed by Christoph Strobl
parent e04f0b0deb
commit e0b2f1ef4d
3 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ class TypeDiscoverer<S> implements TypeInformation<S> {
.map(ResolvableType::toClass).collect(Collectors.toList()));
}
static TypeDiscoverer<?> td(ResolvableType type) {
static TypeDiscoverer<?> ofCached(ResolvableType type) {
Assert.notNull(type, "Type must not be null");

View File

@@ -60,7 +60,7 @@ public interface TypeInformation<S> {
Assert.notNull(type, "Type must not be null");
return type.hasGenerics() || (type.isArray() && type.getComponentType().hasGenerics()) //
|| (type.getType() instanceof TypeVariable) ? TypeDiscoverer.td(type) : ClassTypeInformation.from(type);
|| (type.getType() instanceof TypeVariable) ? TypeDiscoverer.ofCached(type) : ClassTypeInformation.from(type);
}
/**