Merge branch 'stable-3.0'
* stable-3.0: Fix single tab indentation in diff Add plugin-manager as core plugin Set version to 3.0.0-rc2 Update highlight.js to master branch Stop using deprecated SoyListData and SoyMapData PolyGerrit: Fix typos in comments gr-create-project-dialog: Fix typo in element id name AccountIT: Fix typo in variable name Set version to 2.16.9-SNAPSHOT AccountIT: Add tests for email notification on adding SSH/GPG keys AccountApi: Add methods to generate and set the HTTP password Change-Id: Ic9f174c5fbe38fa9e4de2bed58e541d94f1df9bd
This commit is contained in:
@@ -44,15 +44,15 @@ import com.google.gerrit.server.permissions.GlobalPermission;
|
||||
import com.google.gerrit.server.permissions.PermissionBackendException;
|
||||
import com.google.gerrit.server.project.ProjectState;
|
||||
import com.google.gerrit.server.query.change.ChangeData;
|
||||
import com.google.template.soy.data.SoyListData;
|
||||
import com.google.template.soy.data.SoyMapData;
|
||||
import java.io.IOException;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
@@ -560,11 +560,11 @@ public abstract class ChangeEmail extends NotificationEmail {
|
||||
* a 'type' key which maps to one of 'common', 'add' or 'remove' and a 'text' key which maps to
|
||||
* the line's content.
|
||||
*/
|
||||
private SoyListData getDiffTemplateData() {
|
||||
SoyListData result = new SoyListData();
|
||||
private List<Map<String, String>> getDiffTemplateData() {
|
||||
List<Map<String, String>> result = new ArrayList<>();
|
||||
Splitter lineSplitter = Splitter.on(System.getProperty("line.separator"));
|
||||
for (String diffLine : lineSplitter.split(getUnifiedDiff())) {
|
||||
SoyMapData lineData = new SoyMapData();
|
||||
Map<String, String> lineData = new HashMap<>();
|
||||
lineData.put("text", diffLine);
|
||||
|
||||
// Skip empty lines and lines that look like diff headers.
|
||||
|
||||
Reference in New Issue
Block a user