Skip to content

Commit

Permalink
CHE-901: use ConcurrentHashMap for projects in ProjectRegistry
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Parfonov <[email protected]>
  • Loading branch information
Vitaly Parfonov authored and Roman Iuvshin committed Mar 29, 2016
1 parent 12a3f45 commit c48741c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;

/**
Expand All @@ -61,7 +62,7 @@ public ProjectRegistry(WorkspaceHolder workspaceHolder,
VirtualFileSystemProvider vfsProvider,
ProjectTypeRegistry projectTypeRegistry,
ProjectHandlerRegistry handlers) throws ServerException {
this.projects = new HashMap<>();
this.projects = new ConcurrentHashMap<>();
this.workspaceHolder = workspaceHolder;
this.vfs = vfsProvider.getVirtualFileSystem();
this.projectTypeRegistry = projectTypeRegistry;
Expand Down

0 comments on commit c48741c

Please sign in to comment.