diff --git a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans/SpringFactoryInformation.java b/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans/SpringFactoryInformation.java deleted file mode 100644 index 2c54389b7..000000000 --- a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans/SpringFactoryInformation.java +++ /dev/null @@ -1,27 +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; - -import org.springframework.ide.vscode.boot.java.handlers.SymbolAddOnInformation; - -public class SpringFactoryInformation implements SymbolAddOnInformation { - - private String key; - - public SpringFactoryInformation(String key) { - this.key = key; - } - - public String getKey() { - return key; - } - -} diff --git a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringFactoriesIndexer.java b/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringFactoriesIndexer.java index aeaae1d7e..0be39ac6e 100644 --- a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringFactoriesIndexer.java +++ b/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringFactoriesIndexer.java @@ -40,7 +40,6 @@ import org.springframework.ide.vscode.boot.index.cache.IndexCacheKey; import org.springframework.ide.vscode.boot.java.beans.BeanUtils; import org.springframework.ide.vscode.boot.java.beans.BeansSymbolAddOnInformation; import org.springframework.ide.vscode.boot.java.beans.BeansSymbolProvider; -import org.springframework.ide.vscode.boot.java.beans.SpringFactoryInformation; import org.springframework.ide.vscode.boot.java.handlers.EnhancedSymbolInformation; import org.springframework.ide.vscode.boot.java.handlers.SymbolAddOnInformation; import org.springframework.ide.vscode.commons.java.IClasspathUtil; @@ -61,7 +60,7 @@ public class SpringFactoriesIndexer implements SpringIndexer { // whenever the implementation of the indexer changes in a way that the stored data in the cache is no longer valid, // we need to change the generation - this will result in a re-indexing due to no up-to-date cache data being found - private static final String GENERATION = "GEN-5"; + private static final String GENERATION = "GEN-6"; private static final String FILE_PATTERN = "**/META-INF/spring/*.factories"; @@ -125,8 +124,7 @@ public class SpringFactoriesIndexer implements SpringIndexer { BeansSymbolProvider.beanLabel(false, beanId, fqName, Paths.get(URI.create(docURI)).getFileName().toString()), SymbolKind.Interface, Either.forLeft(new Location(docURI, range))), new SymbolAddOnInformation[] { - new BeansSymbolAddOnInformation(beanId, fqName), - new SpringFactoryInformation(key) + new BeansSymbolAddOnInformation(beanId, fqName) })); } catch (Exception e) { log.error("", e);