commit | ce8b76168588c0ee5fbb04bee31ba89088957c86 | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Wed Apr 17 13:58:19 2019 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Thu Apr 18 08:15:04 2019 -0700 |
tree | 2e212ebdff8bcf53ed8c838f480aa039fc46d1b6 | |
parent | 04783e4763622e3378e2f35d72cde6e14e3239ad [diff] |
Adapt to Account.Id refactoring Change-Id: I669286591fe58b9589ed73d89af660f19e319b00
diff --git a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java index 93daf4d..6234098 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java +++ b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java
@@ -105,7 +105,7 @@ String ident = username(uuid); Optional<AccountState> state; if (ident.matches(ACCOUNT_ID_PATTERN)) { - state = accountCache.get(new Account.Id(Integer.parseInt(ident))); + state = accountCache.get(Account.id(Integer.parseInt(ident))); } else if (ExternalId.isValidUsername(ident)) { state = accountCache.getByUsername(ident); } else {