Skip to content

Commit 8e92994

Browse files
BoykoAlexCopilot
andauthored
Update eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/SpringIndexState.java
Co-authored-by: Copilot <[email protected]> Signed-off-by: Alex Boyko <[email protected]>
1 parent e5a692a commit 8e92994

File tree

1 file changed

+1
-1
lines changed
  • eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons

1 file changed

+1
-1
lines changed

eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/SpringIndexState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void removeStateChangedListener(Consumer<Set<String>> l) {
2929
}
3030

3131
/*
32-
* Ideally does not need to be synced but it should be error prone for for more than server notifying about index changes
32+
* Ideally, this does not need to be synchronized, but synchronization is necessary if more than one server may notify about index changes to avoid potential errors.
3333
*/
3434
synchronized void indexed(Set<String> projectNames) {
3535
listeners.forEach(l -> l.accept(Collections.unmodifiableSet(projectNames)));

0 commit comments

Comments
 (0)