replace temporary label with real one for bean method validation

This commit is contained in:
Martin Lippert
2023-07-27 08:51:43 +02:00
parent 035feb5969
commit 3677985b54

View File

@@ -74,10 +74,10 @@ public class BeanMethodNotPublicReconciler implements AnnotationReconciler {
.filter(modifier -> modifier.isPublic())
.findFirst()
.map(modifier -> new ReconcileProblemImpl(
Boot2JavaProblemType.JAVA_PUBLIC_BEAN_METHOD, "super special DIAGNOSTICS with public @Bean method",
Boot2JavaProblemType.JAVA_PUBLIC_BEAN_METHOD, Boot2JavaProblemType.JAVA_PUBLIC_BEAN_METHOD.getLabel(),
modifier.getStartPosition(), modifier.getLength()))
.orElse(new ReconcileProblemImpl(
Boot2JavaProblemType.JAVA_PUBLIC_BEAN_METHOD, "super special DIAGNOSTICS with public @Bean method",
Boot2JavaProblemType.JAVA_PUBLIC_BEAN_METHOD, Boot2JavaProblemType.JAVA_PUBLIC_BEAN_METHOD.getLabel(),
method.getName().getStartPosition(), method.getName().getLength()));
addQuickFixes(doc, problem, method);