GH-1041: removed special symbols addon class for config beans, not necessary anymore
This commit is contained in:
@@ -90,15 +90,10 @@ public class ComponentSymbolProvider extends AbstractSymbolProvider {
|
||||
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);
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2022 VMware, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* VMware, Inc. - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.springframework.ide.vscode.boot.java.beans;
|
||||
|
||||
public class ConfigBeanSymbolAddOnInformation extends BeansSymbolAddOnInformation {
|
||||
|
||||
public ConfigBeanSymbolAddOnInformation(String beanID, String beanType) {
|
||||
super(beanID, beanType);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user