committed by
Christoph Strobl
parent
e04f0b0deb
commit
e0b2f1ef4d
@@ -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");
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user