Skip to content

Commit 2f18876

Browse files
committed
polish
1 parent 72a4865 commit 2f18876

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ public boolean visit(TypeDeclaration node) {
7474

7575
List<BeanMethodContainerElement> beanMethodContainers = springIndex.getNodesOfType(BeanMethodContainerElement.class);
7676

77-
beanMethodContainers.stream().filter(beanContainer -> configurationTypes.contains(beanContainer.getType()))
78-
.map(beanContainer -> beanContainer.getLocation().getUri()).map(docURI -> UriUtil.toFileString(docURI))
77+
beanMethodContainers.stream()
78+
.filter(beanContainer -> configurationTypes.contains(beanContainer.getType()))
79+
.map(beanContainer -> beanContainer.getLocation().getUri())
80+
.map(docURI -> UriUtil.toFileString(docURI))
7981
.forEach(file -> context.markForAffetcedFilesIndexing(file));
8082

8183
return true;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*******************************************************************************
2-
* Copyright (c) 2023, 2025 VMware, Inc.
2+
* Copyright (c) 2025 Broadcom
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
66
* https://www.eclipse.org/legal/epl-v10.html
77
*
88
* Contributors:
9-
* VMware, Inc. - initial API and implementation
9+
* Broadcom - initial API and implementation
1010
*******************************************************************************/
1111
package org.springframework.ide.vscode.boot.java.reconcilers;
1212

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,10 @@ public static Map<String, AnnotationAttributeValue[]> getAttributes(Annotation a
739739
result.put("value", attributeValues);
740740

741741
} else if (annotation.isNormalAnnotation()) {
742-
List<?> attributes = ((NormalAnnotation) annotation).values();
743-
for (Object attribute : attributes) {
744-
MemberValuePair pair = (MemberValuePair) attribute;
742+
743+
@SuppressWarnings("unchecked")
744+
List<MemberValuePair> attributes = ((NormalAnnotation) annotation).values();
745+
for (MemberValuePair pair : attributes) {
745746

746747
SimpleName attributeName = pair.getName();
747748
Expression attributeValue = pair.getValue();

headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/reconcilers/test/PathInControllerAnnotationReconcilerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*******************************************************************************
2-
* Copyright (c) 2023, 2025 VMware, Inc.
2+
* Copyright (c) 2025 Broadcom
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
66
* https://www.eclipse.org/legal/epl-v10.html
77
*
88
* Contributors:
9-
* VMware, Inc. - initial API and implementation
9+
* Broadcom - initial API and implementation
1010
*******************************************************************************/
1111
package org.springframework.ide.vscode.boot.java.reconcilers.test;
1212

0 commit comments

Comments
 (0)