aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/tutorial.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/tutorial.adoc')
-rw-r--r--documentation/tutorial.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/tutorial.adoc b/documentation/tutorial.adoc
index 589f6a69b7..adbfa51213 100644
--- a/documentation/tutorial.adoc
+++ b/documentation/tutorial.adoc
@@ -292,7 +292,7 @@ Also, let us get a reference to the [classname]#CustomerService#.
public class MyUI extends UI {
// Add the next two lines:
private CustomerService service = CustomerService.getInstance();
- private Grid<Customer> grid = new Grid<>();
+ private Grid<Customer> grid = new Grid<>(Customer.class);
// The rest is already there...
@Override
@@ -362,7 +362,7 @@ omitted):
[source,java]
----
private CustomerService service = CustomerService.getInstance();
-private Grid grid = new Grid();
+private Grid<Customer> grid = new Grid<>(Customer.class);
@Override
protected void init(VaadinRequest vaadinRequest) {