Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa363a5 + f29f24a commit 0257ebbCopy full SHA for 0257ebb
src/main/java/org/kohsuke/github/GHRepository.java
@@ -113,11 +113,11 @@ public class GHRepository extends GHObject {
113
114
private String pushed_at;
115
116
- private Map<Integer, GHMilestone> milestones = new WeakHashMap<Integer, GHMilestone>();
+ private Map<Integer, GHMilestone> milestones = Collections.synchronizedMap(new WeakHashMap<>());
117
118
private String default_branch, language;
119
120
- private Map<String, GHCommit> commits = new WeakHashMap<String, GHCommit>();
+ private Map<String, GHCommit> commits = Collections.synchronizedMap(new WeakHashMap<>());
121
122
@SkipFromToString
123
private GHRepoPermission permissions;
0 commit comments