mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vsc] user registry: synchronize creating new users
This commit is contained in:
@@ -81,7 +81,9 @@ public class VcsUserRegistryImpl implements Disposable, VcsUserRegistry {
|
||||
@NotNull
|
||||
@Override
|
||||
public VcsUser createUser(@NotNull String name, @NotNull String email) {
|
||||
return myInterner.intern(new VcsUserImpl(name, email));
|
||||
synchronized (myInterner) {
|
||||
return myInterner.intern(new VcsUserImpl(name, email));
|
||||
}
|
||||
}
|
||||
|
||||
public void addUser(@NotNull VcsUser user) {
|
||||
|
||||
Reference in New Issue
Block a user