From 0a7b430d50dc8d82e2ca23296381939a7f444846 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Tue, 26 May 2015 15:44:25 +0300 Subject: [PATCH] Use GWT.create instead of new in Grid client-side (#18011) Change-Id: I34db328092965e0dd8c63c9e65504b637a3fa9e5 --- client/src/com/vaadin/client/widgets/Grid.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 53e0566e8d..50bc778736 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -3854,7 +3854,7 @@ public class Grid extends ResizeComposite implements @Override protected SelectionModel createModel() { - return new SelectionModelSingle(); + return GWT.create(SelectionModelSingle.class); } }, @@ -3865,7 +3865,7 @@ public class Grid extends ResizeComposite implements @Override protected SelectionModel createModel() { - return new SelectionModelMulti(); + return GWT.create(SelectionModelMulti.class); } }, @@ -3876,7 +3876,7 @@ public class Grid extends ResizeComposite implements @Override protected SelectionModel createModel() { - return new SelectionModelNone(); + return GWT.create(SelectionModelNone.class); } }; -- 2.39.5