GH-813 - Introduce FormattableType.

As replacement for misspelled Formatable type.
This commit is contained in:
Oliver Drotbohm
2024-09-20 22:02:17 +02:00
parent 9d818b467c
commit 438f17b56d
11 changed files with 250 additions and 120 deletions

View File

@@ -31,7 +31,7 @@ import org.springframework.modulith.core.ApplicationModules;
import org.springframework.modulith.core.ArchitecturallyEvidentType;
import org.springframework.modulith.core.DependencyType;
import org.springframework.modulith.core.EventType;
import org.springframework.modulith.core.FormatableType;
import org.springframework.modulith.core.FormattableType;
import org.springframework.modulith.core.Source;
import org.springframework.modulith.core.SpringBean;
import org.springframework.modulith.docs.ConfigurationProperties.ModuleProperty;
@@ -254,7 +254,7 @@ class Asciidoctor {
var module = modules.getModuleByType(source).orElse(null);
var typeAndMethod = toCode(
toTypeAndMethod(FormatableType.of(source).getAbbreviatedFullName(module), methodSignature));
toTypeAndMethod(FormattableType.of(source).getAbbreviatedFullName(module), methodSignature));
if (module == null
|| !source.getModifiers().contains(JavaModifier.PUBLIC)