Fixed a typo in the name of the ParamertizedString class.
Renamed ParamertizedString to ParameterizedString and also ParamertizedStringTest to ParameterizedStringTest. Change-Id: I1d6998b279b37e04e0d5db69ee271c9e7e621517
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
package com.google.gerrit.server.mail;
|
||||
|
||||
import com.google.gerrit.common.data.ParamertizedString;
|
||||
import com.google.gerrit.common.data.ParameterizedString;
|
||||
import com.google.gerrit.reviewdb.Account;
|
||||
import com.google.gerrit.server.GerritPersonIdent;
|
||||
import com.google.gerrit.server.account.AccountCache;
|
||||
@@ -41,7 +41,7 @@ public class FromAddressGeneratorProvider implements
|
||||
final Address srvAddr = toAddress(myIdent);
|
||||
|
||||
if (from == null || "MIXED".equalsIgnoreCase(from)) {
|
||||
ParamertizedString name = new ParamertizedString("${user} (Code Review)");
|
||||
ParameterizedString name = new ParameterizedString("${user} (Code Review)");
|
||||
generator = new PatternGen(srvAddr, accountCache, name, srvAddr.email);
|
||||
|
||||
} else if ("USER".equalsIgnoreCase(from)) {
|
||||
@@ -52,7 +52,7 @@ public class FromAddressGeneratorProvider implements
|
||||
|
||||
} else {
|
||||
final Address a = Address.parse(from);
|
||||
final ParamertizedString name = a.name != null ? new ParamertizedString(a.name) : null;
|
||||
final ParameterizedString name = a.name != null ? new ParameterizedString(a.name) : null;
|
||||
if (name == null || name.getParameterNames().isEmpty()) {
|
||||
generator = new ServerGen(a);
|
||||
} else {
|
||||
@@ -118,10 +118,10 @@ public class FromAddressGeneratorProvider implements
|
||||
private final String senderEmail;
|
||||
private final Address serverAddress;
|
||||
private final AccountCache accountCache;
|
||||
private final ParamertizedString namePattern;
|
||||
private final ParameterizedString namePattern;
|
||||
|
||||
PatternGen(final Address serverAddress, final AccountCache accountCache,
|
||||
final ParamertizedString namePattern, final String senderEmail) {
|
||||
final ParameterizedString namePattern, final String senderEmail) {
|
||||
this.senderEmail = senderEmail;
|
||||
this.serverAddress = serverAddress;
|
||||
this.accountCache = accountCache;
|
||||
|
||||
Reference in New Issue
Block a user