Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1d41b8b

Browse filesBrowse files
authored
Merge branch 'main' into add-workflowjob-labels
2 parents e6d34e5 + 0257ebb commit 1d41b8b
Copy full SHA for 1d41b8b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/main/java/org/kohsuke/github/GHRepository.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ public class GHRepository extends GHObject {
113113

114114
private String pushed_at;
115115

116-
private Map<Integer, GHMilestone> milestones = new WeakHashMap<Integer, GHMilestone>();
116+
private Map<Integer, GHMilestone> milestones = Collections.synchronizedMap(new WeakHashMap<>());
117117

118118
private String default_branch, language;
119119

120-
private Map<String, GHCommit> commits = new WeakHashMap<String, GHCommit>();
120+
private Map<String, GHCommit> commits = Collections.synchronizedMap(new WeakHashMap<>());
121121

122122
@SkipFromToString
123123
private GHRepoPermission permissions;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.