mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
Made LanguageServerImpl.supportedMethods volatile
As the parameter is used in a method that has a synchronized block, it seems like this value can be accessed in a multit-hreaded way. It should thus be volatile. Signed-off-by: Titouan Vervack <tivervac@gmail.com>
This commit is contained in:
parent
8e1663e5e2
commit
45409d150d
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ public class LanguageServerImpl implements LanguageServer, WorkspaceService, Tex
|
|||
|
||||
private LanguageClient client;
|
||||
|
||||
private Map<String, JsonRpcMethod> supportedMethods;
|
||||
private volatile Map<String, JsonRpcMethod> supportedMethods;
|
||||
|
||||
private final CompletableFuture<InitializedParams> initialized = new CompletableFuture<>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue