aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/GridLayout.java
diff options
context:
space:
mode:
authorPer-Åke Minborg <minborg@speedment.com>2016-10-27 23:14:17 -0700
committerHenri Sara <hesara@vaadin.com>2016-11-02 14:19:08 +0000
commit53701564b197d1d30bd3dbc2f4e6a8d01b01b25a (patch)
treed5813848e5144d0af462fcb218c86bd783abfa96 /server/src/main/java/com/vaadin/ui/GridLayout.java
parent3b3df42e7496b708a03b6b69b1f195c178541999 (diff)
downloadvaadin-framework-53701564b197d1d30bd3dbc2f4e6a8d01b01b25a.tar.gz
vaadin-framework-53701564b197d1d30bd3dbc2f4e6a8d01b01b25a.zip
Use diamond in generic creation where possible
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7214
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/GridLayout.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/GridLayout.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/ui/GridLayout.java b/server/src/main/java/com/vaadin/ui/GridLayout.java
index 08ca2cb2b3..a634e47cf3 100644
--- a/server/src/main/java/com/vaadin/ui/GridLayout.java
+++ b/server/src/main/java/com/vaadin/ui/GridLayout.java
@@ -1281,7 +1281,7 @@ public class GridLayout extends AbstractLayout
for (Element e : design.children()) {
if (e.tagName().equalsIgnoreCase("row")) {
rowElements.add(e);
- rows.add(new HashMap<Integer, Component>());
+ rows.add(new HashMap<>());
}
}
@@ -1333,7 +1333,7 @@ public class GridLayout extends AbstractLayout
+ colspan; ++colIndex) {
if (rowIndex == rows.size()) {
// Rowspan with not enough rows. Fix by adding rows.
- rows.add(new HashMap<Integer, Component>());
+ rows.add(new HashMap<>());
}
rows.get(rowIndex).put(colIndex + skippedColumns,
child);