update validation message for bean registrar check

This commit is contained in:
Martin Lippert
2025-03-26 15:59:31 +01:00
parent acc8f4de4e
commit d1319977e0

View File

@@ -109,7 +109,7 @@ public class BeanRegistrarDeclarationReconciler implements JdtAstReconciler {
List<String> importingBeanRegistrarConfigs = getImportedBeanRegistrarConfigs(configBeans, type);
if (configBeans.isEmpty() || importingBeanRegistrarConfigs.size() == 0) {
ReconcileProblemImpl problem = new ReconcileProblemImpl(getProblemType(), "Bean not registered", node.getName().getStartPosition(), node.getName().getLength());
ReconcileProblemImpl problem = new ReconcileProblemImpl(getProblemType(), "No @Import found for bean registrar", node.getName().getStartPosition(), node.getName().getLength());
List<FixDescriptor> fixes = configBeans.stream()
.filter(b -> b.getLocation() != null && b.getLocation().getUri() != null)
.map(b -> new FixDescriptor(ImportBeanRegistrarInConfigRecipe.class.getName(), List.of(b.getLocation().getUri()), "Add %s to `@Import` in %s".formatted(type.getName(), b.getName()))