Convert AccountGroup.UUID to AutoValue

Adapt GroupReference to avoid an AccountGroup.UUID with a null value.

See I6982fb24 for context.

Change-Id: I26c460304eed8ffa77ba65b712ed4ffb73974286
This commit is contained in:
Dave Borowitz
2019-04-17 13:16:34 -07:00
parent 390e4c650b
commit 569a13a406
51 changed files with 263 additions and 307 deletions

View File

@@ -53,7 +53,7 @@ public class AccountGroupUUIDHandler extends OptionHandler<AccountGroup.UUID> {
@Override
public final int parseArguments(Parameters params) throws CmdLineException {
final String n = params.getParameter(0);
AccountGroup.UUID uuid = new AccountGroup.UUID(n);
AccountGroup.UUID uuid = AccountGroup.uuid(n);
if (groupBackend.handles(uuid)) {
GroupDescription.Basic d = groupBackend.get(uuid);
if (d != null) {