aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/Window.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-09-05 12:33:39 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2016-09-05 10:02:48 +0000
commit504b3c4c65c6a2ccfeeb1501eff7a29f5a3dbec3 (patch)
treee65c1813439a25bbab6c81e71c27ba8ccf69970b /server/src/main/java/com/vaadin/ui/Window.java
parent6941d683eb15a8ae10e0d302bcf9608be8825f8a (diff)
downloadvaadin-framework-504b3c4c65c6a2ccfeeb1501eff7a29f5a3dbec3.tar.gz
vaadin-framework-504b3c4c65c6a2ccfeeb1501eff7a29f5a3dbec3.zip
Use diamond operator where it can be used
Does not modify compatibility packages to keep to closer to Vaadin 7.7 Change-Id: Ic9c4944eb90218290545a04ecd7455eb63910012
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/Window.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/Window.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Window.java b/server/src/main/java/com/vaadin/ui/Window.java
index 6ad8ef500b..c0eac75970 100644
--- a/server/src/main/java/com/vaadin/ui/Window.java
+++ b/server/src/main/java/com/vaadin/ui/Window.java
@@ -106,7 +106,7 @@ public class Window extends Panel
/**
* Holds registered CloseShortcut instances for query and later removal
*/
- private List<CloseShortcut> closeShortcuts = new ArrayList<CloseShortcut>(
+ private List<CloseShortcut> closeShortcuts = new ArrayList<>(
4);
/**
@@ -1398,7 +1398,7 @@ public class Window extends Panel
@Override
protected void readDesignChildren(Elements children,
DesignContext context) {
- List<Component> descriptions = new ArrayList<Component>();
+ List<Component> descriptions = new ArrayList<>();
Elements content = new Elements();
for (Element child : children) {