diff options
author | David Pursehouse <dpursehouse@collab.net> | 2018-06-20 12:33:55 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2018-06-20 14:18:51 +0900 |
commit | 11a98d0c929a5f7b1008b4eb8c4beb325efba183 (patch) | |
tree | 5daf06d63aab5deafb944bf7058b0d4996acafdd | |
parent | f2b2481a0d203484be39bdba9fe462efab064180 (diff) |
OutgoingEmail: Reduce visibility of methods
Methods only used by derived classes may be reduced to protected
visibility.
Change-Id: Icad3f849c9e2bf8c8d2d1ecd681560a06a037fd3
-rw-r--r-- | gerrit-server/src/main/java/com/google/gerrit/server/mail/send/OutgoingEmail.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/OutgoingEmail.java b/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/OutgoingEmail.java index a4ac857129..465f13192b 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/OutgoingEmail.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/mail/send/OutgoingEmail.java @@ -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; } |