mirror of
https://github.com/google/nomulus.git
synced 2025-05-17 09:57:17 +02:00
Use method reference instead of lambda
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=239633243
This commit is contained in:
parent
32c0eee5b9
commit
2481704d00
1 changed files with 2 additions and 7 deletions
|
@ -502,9 +502,7 @@ public class RegistrarSettingsAction implements Runnable, JsonActionRunner.JsonA
|
||||||
sendEmailUtils.sendEmail(
|
sendEmailUtils.sendEmail(
|
||||||
String.format(
|
String.format(
|
||||||
"Registrar %s (%s) updated in %s",
|
"Registrar %s (%s) updated in %s",
|
||||||
existingRegistrar.getRegistrarName(),
|
existingRegistrar.getRegistrarName(), existingRegistrar.getClientId(), environment),
|
||||||
existingRegistrar.getClientId(),
|
|
||||||
environment),
|
|
||||||
String.format(
|
String.format(
|
||||||
"The following changes were made on %s to the registrar %s by %s:\n\n%s",
|
"The following changes were made on %s to the registrar %s by %s:\n\n%s",
|
||||||
environment,
|
environment,
|
||||||
|
@ -512,10 +510,7 @@ public class RegistrarSettingsAction implements Runnable, JsonActionRunner.JsonA
|
||||||
authResult.userIdForLogging(),
|
authResult.userIdForLogging(),
|
||||||
DiffUtils.prettyPrintDiffedMap(diffs, null)),
|
DiffUtils.prettyPrintDiffedMap(diffs, null)),
|
||||||
existingContacts.stream()
|
existingContacts.stream()
|
||||||
.map(
|
.map(RegistrarContact::getEmailAddress)
|
||||||
contact -> {
|
|
||||||
return contact.getEmailAddress();
|
|
||||||
})
|
|
||||||
.collect(toImmutableList()));
|
.collect(toImmutableList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue