Skip to content

Commit 7bf6f26

Browse files
committed
GH-1161 - FormattableType now correctly abbreviates nested types.
1 parent c8cdb02 commit 7bf6f26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-modulith-core/src/main/java/org/springframework/modulith/core/FormattableType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private FormattableType(String type) {
7676
.collect(Collectors.joining("."));
7777

7878
return abbreviatedPackage.concat(".") //
79-
.concat(ClassUtils.getShortName(getFullName()));
79+
.concat(ClassUtils.getShortName(type));
8080
});
8181
}
8282

@@ -158,7 +158,7 @@ public String getAbbreviatedFullName(@Nullable ApplicationModule module) {
158158
return abbreviate(basePackageName) //
159159
.concat(typePackageName.substring(basePackageName.length())) //
160160
.concat(".") //
161-
.concat(ClassUtils.getShortName(getFullName()));
161+
.concat(ClassUtils.getShortName(type));
162162
}
163163

164164
/*

0 commit comments

Comments
 (0)