Polishing

This commit is contained in:
Juergen Hoeller
2021-12-14 09:46:52 +01:00
parent ba468a731f
commit aeff664cf9
3 changed files with 6 additions and 6 deletions

View File

@@ -976,8 +976,7 @@ public class ResolvableType implements Serializable {
if (this.resolved == null) {
return "?";
}
if (this.type instanceof TypeVariable) {
TypeVariable<?> variable = (TypeVariable<?>) this.type;
if (this.type instanceof TypeVariable<?> variable) {
if (this.variableResolver == null || this.variableResolver.resolveVariable(variable) == null) {
// Don't bother with variable boundaries for toString()...
// Can cause infinite recursions in case of self-references