File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Filter options
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Original file line number Diff line number Diff line change 38
38
import java .util .Date ;
39
39
import java .util .HashMap ;
40
40
import java .util .HashSet ;
41
+ import java .util .Hashtable ;
41
42
import java .util .List ;
42
43
import java .util .Map ;
43
44
import java .util .Set ;
53
54
/**
54
55
* Root of the GitHub API.
55
56
*
57
+ * <h2>Thread safety</h2>
58
+ * <p>
59
+ * This library aims to be safe for use by multiple threads concurrently, although
60
+ * the library itself makes no attempt to control/serialize potentially conflicting
61
+ * operations to GitHub, such as updating & deleting a repository at the same time.
62
+ *
56
63
* @author Kohsuke Kawaguchi
57
64
*/
58
65
public class GitHub {
@@ -63,8 +70,8 @@ public class GitHub {
63
70
*/
64
71
/*package*/ final String encodedAuthorization ;
65
72
66
- private final Map <String ,GHUser > users = new HashMap <String , GHUser >();
67
- private final Map <String ,GHOrganization > orgs = new HashMap <String , GHOrganization >();
73
+ private final Map <String ,GHUser > users = new Hashtable <String , GHUser >();
74
+ private final Map <String ,GHOrganization > orgs = new Hashtable <String , GHOrganization >();
68
75
69
76
private final String apiUrl ;
70
77
You can’t perform that action at this time.
0 commit comments