Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit d8ebf32

Browse files
committed
fix: internal ConcurrentModificationException
1 parent c6fcc90 commit d8ebf32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- fix: do not try to getAnalysis if `upload files` is not succeed (i.e. `missingFiles` is not empty after uploads)
55
- fix: avoid remove operation for empty immutable List
66
- fix: check file in marker for nullability before proceed
7+
- fix: internal ConcurrentModificationException
78
- feat: provide unique (per project) `shard` to getAnalysis call
89
- feat: provide `analysisContext` key (`getAnalysis` request) for better tracking/logging on backend
910
- chore: reshape/refactor REST API wrapper to be replaceable through constructor base DI

src/main/java/ai/deepcode/javaclient/core/RunUtilsBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected abstract void doBackgroundRun(
8686
private static final Map<Object, Set<Object>> mapProject2Progresses = new ConcurrentHashMap<>();
8787

8888
protected static synchronized Set<Object> getRunningProgresses(@NotNull Object project) {
89-
return mapProject2Progresses.computeIfAbsent(project, p -> new HashSet<>());
89+
return mapProject2Progresses.computeIfAbsent(project, p -> ConcurrentHashMap.newKeySet());
9090
}
9191

9292
// ??? list of all running background tasks

0 commit comments

Comments
 (0)