Skip to content

Commit

Permalink
Update ExtensionRepository.java
Browse files Browse the repository at this point in the history
这里存在线程不安全的情况,改成ConcurrentHashMap
  • Loading branch information
peterxiemin authored Jan 17, 2025
1 parent 09ce216 commit 4483aea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public Map<ExtensionCoordinate, ExtensionPointI> getExtensionRepo() {
return extensionRepo;
}

private Map<ExtensionCoordinate, ExtensionPointI> extensionRepo = new HashMap<>();
private Map<ExtensionCoordinate, ExtensionPointI> extensionRepo = new ConcurrentHashMap<>();


}

0 comments on commit 4483aea

Please sign in to comment.