Move edit ref name methods from ChangeEditUtil to RefNames

Change-Id: I797c227fed66ef1e5761c6367f1a96aaeb23c7f2
This commit is contained in:
David Pursehouse
2015-04-16 18:13:06 +09:00
parent 3404e99ba5
commit b9a1e88412
6 changed files with 40 additions and 38 deletions

View File

@@ -18,6 +18,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.PatchSet;
import com.google.gerrit.reviewdb.client.RefNames;
import com.google.gerrit.reviewdb.client.RevId;
import com.google.gerrit.server.IdentifiedUser;
@@ -71,7 +72,7 @@ public class ChangeEdit {
}
public String getRefName() {
return ChangeEditUtil.editRefName(user.getAccountId(), change.getId(),
return RefNames.refsEdit(user.getAccountId(), change.getId(),
basePatchSet.getId());
}