Skip to content

Commit d131997

Browse files
committed
update validation message for bean registrar check
1 parent acc8f4d commit d131997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/reconcilers/BeanRegistrarDeclarationReconciler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public boolean visit(TypeDeclaration node) {
109109
List<String> importingBeanRegistrarConfigs = getImportedBeanRegistrarConfigs(configBeans, type);
110110
if (configBeans.isEmpty() || importingBeanRegistrarConfigs.size() == 0) {
111111

112-
ReconcileProblemImpl problem = new ReconcileProblemImpl(getProblemType(), "Bean not registered", node.getName().getStartPosition(), node.getName().getLength());
112+
ReconcileProblemImpl problem = new ReconcileProblemImpl(getProblemType(), "No @Import found for bean registrar", node.getName().getStartPosition(), node.getName().getLength());
113113
List<FixDescriptor> fixes = configBeans.stream()
114114
.filter(b -> b.getLocation() != null && b.getLocation().getUri() != null)
115115
.map(b -> new FixDescriptor(ImportBeanRegistrarInConfigRecipe.class.getName(), List.of(b.getLocation().getUri()), "Add %s to `@Import` in %s".formatted(type.getName(), b.getName()))

0 commit comments

Comments
 (0)