Skip to content

Commit 7c40f30

Browse files
committed
GH-1041: removed special symbols addon class for config beans, not necessary anymore
1 parent 44e4974 commit 7c40f30

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,10 @@ protected Tuple.Two<EnhancedSymbolInformation, Bean> createSymbol(Annotation nod
9090
beanLabel("+", annotationTypeName, metaAnnotationNames, beanName, beanType.getName()), SymbolKind.Interface,
9191
Either.forLeft(location));
9292

93-
boolean isConfiguration = false;
94-
SymbolAddOnInformation[] addon = new SymbolAddOnInformation[0];
95-
if (Annotations.CONFIGURATION.equals(annotationType.getQualifiedName())
96-
|| metaAnnotations.stream().anyMatch(t -> Annotations.CONFIGURATION.equals(t.getQualifiedName()))) {
97-
addon = new SymbolAddOnInformation[] {new ConfigBeanSymbolAddOnInformation(beanName, beanType.getQualifiedName())};
98-
isConfiguration = true;
99-
} else {
100-
addon = new SymbolAddOnInformation[] {new BeansSymbolAddOnInformation(beanName, beanType.getQualifiedName())};
101-
}
93+
boolean isConfiguration = Annotations.CONFIGURATION.equals(annotationType.getQualifiedName())
94+
|| metaAnnotations.stream().anyMatch(t -> Annotations.CONFIGURATION.equals(t.getQualifiedName()));
95+
96+
SymbolAddOnInformation[] addon = new SymbolAddOnInformation[] {new BeansSymbolAddOnInformation(beanName, beanType.getQualifiedName())};
10297

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

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

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)