mirror of
https://github.com/google/nomulus
synced 2026-01-07 05:56:49 +00:00
Rename "clientIdentifier" to "clientId" almost everywhere
It's best to be consistent and use the same thing everywhere. "clientId" was already used in more places and is shorter and no more ambiguous, so it's the logical one to win out. Note that this CL is almost solely a big Eclipse-assisted refactoring. There are two places that I did not change clientIdentifier -- the actual entity field on Registrar (though I did change all getters and setters), and the name of a column on the exported registrar spreadsheet. Both would require data migrations. Also fixes a few minor nits discovered in touched files, including an incorrect test in OfyFilterTest.java and some superfluous uses of String.format() when calling checkArgument(). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133956465
This commit is contained in:
@@ -139,9 +139,9 @@ final class RegistrarContactCommand extends MutatingCommand implements GtechComm
|
||||
protected void init() throws Exception {
|
||||
checkArgument(mainParameters.size() == 1,
|
||||
"Must specify exactly one client identifier: %s", ImmutableList.copyOf(mainParameters));
|
||||
String clientIdentifier = mainParameters.get(0);
|
||||
Registrar registrar = checkNotNull(
|
||||
Registrar.loadByClientId(clientIdentifier), "Registrar %s not found", clientIdentifier);
|
||||
String clientId = mainParameters.get(0);
|
||||
Registrar registrar =
|
||||
checkNotNull(Registrar.loadByClientId(clientId), "Registrar %s not found", clientId);
|
||||
contactTypes =
|
||||
newHashSet(
|
||||
transform(
|
||||
|
||||
Reference in New Issue
Block a user