Correct the error message for modulith reconcile problem

This commit is contained in:
aboyko
2023-10-20 09:53:44 -04:00
parent 58635fda1c
commit 68985b8e58

View File

@@ -65,8 +65,7 @@ public class ModulithTypeReferenceViolationReconciler implements JdtAstReconcile
if (type != null) {
appModules.getModuleNotExposingType(packageName, type.getBinaryName()).ifPresent(module -> {
problemCollector.accept(new ReconcileProblemImpl(getProblemType(),
"Cannot use type in this package. Type is not exposed in module '"
+ module.name() + "'.",
"Invalid reference to non-exposed type of module '%s'!".formatted(module.name()),
node.getStartPosition(), node.getLength()));
});
}