Skip to content

Commit

Permalink
GH-1041: removed special symbols addon class for config beans, not ne…
Browse files Browse the repository at this point in the history
…cessary anymore
  • Loading branch information
martinlippert committed Jan 9, 2025
1 parent 44e4974 commit 7c40f30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,10 @@ protected Tuple.Two<EnhancedSymbolInformation, Bean> createSymbol(Annotation nod
beanLabel("+", annotationTypeName, metaAnnotationNames, beanName, beanType.getName()), SymbolKind.Interface,
Either.forLeft(location));

boolean isConfiguration = false;
SymbolAddOnInformation[] addon = new SymbolAddOnInformation[0];
if (Annotations.CONFIGURATION.equals(annotationType.getQualifiedName())
|| metaAnnotations.stream().anyMatch(t -> Annotations.CONFIGURATION.equals(t.getQualifiedName()))) {
addon = new SymbolAddOnInformation[] {new ConfigBeanSymbolAddOnInformation(beanName, beanType.getQualifiedName())};
isConfiguration = true;
} else {
addon = new SymbolAddOnInformation[] {new BeansSymbolAddOnInformation(beanName, beanType.getQualifiedName())};
}
boolean isConfiguration = Annotations.CONFIGURATION.equals(annotationType.getQualifiedName())
|| metaAnnotations.stream().anyMatch(t -> Annotations.CONFIGURATION.equals(t.getQualifiedName()));

SymbolAddOnInformation[] addon = new SymbolAddOnInformation[] {new BeansSymbolAddOnInformation(beanName, beanType.getQualifiedName())};

InjectionPoint[] injectionPoints = ASTUtils.findInjectionPoints(type, doc);

Expand Down

This file was deleted.

0 comments on commit 7c40f30

Please sign in to comment.