commit | ba824869c6b24348647f26e04cf80e1ae82266ec | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Oct 31 11:31:19 2014 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Oct 31 11:31:19 2014 +0900 |
tree | ba3a16e3b38b8ee923336d6842ebef85ede6c8ef | |
parent | 862e8b72a32ec27d39011d42f9f3e0892bc9bee0 [diff] |
Fix warnings about redundant type arguments Change-Id: I5ac225f23841e35d5938bdc0996e7b54f3343b63
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java index ebb7d10..379f923 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java +++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/ExportReviewNotes.java
@@ -91,13 +91,12 @@ } private Map<Project.NameKey, List<Change>> cluster(List<Change> changes) { - HashMap<Project.NameKey, List<Change>> m = - new HashMap<Project.NameKey, List<Change>>(); + HashMap<Project.NameKey, List<Change>> m = new HashMap<>(); for (Change change : changes) { if (change.getStatus() == Change.Status.MERGED) { List<Change> l = m.get(change.getProject()); if (l == null) { - l = new BlockList<Change>(); + l = new BlockList<>(); m.put(change.getProject(), l); } l.add(change);