GH-1151 - FormattableType now correctly abbreviates nested types.

This commit is contained in:
Oliver Drotbohm
2025-04-17 23:48:21 +02:00
parent 10f8716481
commit 4cce4626d5

View File

@@ -76,7 +76,7 @@ public class FormattableType extends FormatableType {
.collect(Collectors.joining("."));
return abbreviatedPackage.concat(".") //
.concat(ClassUtils.getShortName(getFullName()));
.concat(ClassUtils.getShortName(type));
});
}
@@ -158,7 +158,7 @@ public class FormattableType extends FormatableType {
return abbreviate(basePackageName) //
.concat(typePackageName.substring(basePackageName.length())) //
.concat(".") //
.concat(ClassUtils.getShortName(getFullName()));
.concat(ClassUtils.getShortName(type));
}
/*