OutgoingEmail: Reduce visibility of methods
Methods only used by derived classes may be reduced to protected visibility. Change-Id: Icad3f849c9e2bf8c8d2d1ecd681560a06a037fd3
This commit is contained in:
@@ -362,7 +362,7 @@ public abstract class OutgoingEmail {
|
||||
* @param accountId user to fetch.
|
||||
* @return name/email of account; Anonymous Coward if unset or the server identity if null.
|
||||
*/
|
||||
public String getNameEmailFor(@Nullable Account.Id accountId) {
|
||||
protected String getNameEmailFor(@Nullable Account.Id accountId) {
|
||||
if (accountId == null) {
|
||||
return String.format(
|
||||
"%s <%s>", args.gerritPersonIdent.getName(), args.gerritPersonIdent.getEmailAddress());
|
||||
@@ -379,7 +379,7 @@ public abstract class OutgoingEmail {
|
||||
* @return name/email of account, username, or null if unset.
|
||||
*/
|
||||
@Nullable
|
||||
public String getUserNameEmailFor(@Nullable Account.Id accountId) {
|
||||
protected String getUserNameEmailFor(@Nullable Account.Id accountId) {
|
||||
if (accountId == null) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user