Make AccountResolver variable private
Also fix constructor parameter name to be consistent with others.
Change-Id: I195588fe8ef79aa0980a03c922ef7faa90b42c95
diff --git a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowAccountCommand.java b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowAccountCommand.java
index 5c29c2f..7342b70 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowAccountCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/adminconsole/ShowAccountCommand.java
@@ -62,19 +62,19 @@
@Option(name = "--show-keys", usage = "show user's public keys?")
private boolean showKeys = false;
- final AccountResolver accountResolver;
+ private final AccountResolver accountResolver;
private final SchemaFactory<ReviewDb> schema;
private final Provider<GetGroups> accountGetGroups;
private final IdentifiedUser.GenericFactory userFactory;
private final Provider<GetSshKeys> getSshKeys;
@Inject
- ShowAccountCommand(AccountResolver ar,
+ ShowAccountCommand(AccountResolver accountResolver,
Provider<GetGroups> accountGetGroups,
IdentifiedUser.GenericFactory userFactory,
Provider<GetSshKeys> getSshKeys,
SchemaFactory<ReviewDb> schema) {
- accountResolver = ar;
+ this.accountResolver = accountResolver;
this.accountGetGroups = accountGetGroups;
this.userFactory = userFactory;
this.schema = schema;