summaryrefslogtreecommitdiffstats
path: root/server/src/test
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-10 12:06:27 +0200
committerHenri Sara <henri.sara@gmail.com>2017-10-10 13:06:27 +0300
commitab18b6c58ef819dbc0049c4713cf06209d5abc47 (patch)
tree84aec85fe2dbeae4b9b340481c5a18228c4ec296 /server/src/test
parent802bb98b851ab9b15617b283ccdba3dbc517ada6 (diff)
downloadvaadin-framework-ab18b6c58ef819dbc0049c4713cf06209d5abc47.tar.gz
vaadin-framework-ab18b6c58ef819dbc0049c4713cf06209d5abc47.zip
Remove unneeded .toString() (#10141)
Diffstat (limited to 'server/src/test')
-rw-r--r--server/src/test/java/com/vaadin/data/provider/BackendDataProviderTest.java4
-rw-r--r--server/src/test/java/com/vaadin/data/provider/hierarchical/Node.java5
2 files changed, 4 insertions, 5 deletions
diff --git a/server/src/test/java/com/vaadin/data/provider/BackendDataProviderTest.java b/server/src/test/java/com/vaadin/data/provider/BackendDataProviderTest.java
index b91a6fe3af..da45054325 100644
--- a/server/src/test/java/com/vaadin/data/provider/BackendDataProviderTest.java
+++ b/server/src/test/java/com/vaadin/data/provider/BackendDataProviderTest.java
@@ -47,7 +47,7 @@ public class BackendDataProviderTest extends
}
List<StrBean> list = stream.skip(query.getOffset())
.limit(query.getLimit()).collect(Collectors.toList());
- list.forEach(s -> System.err.println(s.toString()));
+ list.forEach(s -> System.err.println(s));
return list.stream();
}, query -> (int) data.stream()
.filter(t -> query.getFilter().orElse(s -> true).test(t))
@@ -66,4 +66,4 @@ public class BackendDataProviderTest extends
getDataProvider().setSortOrders(sortOrder);
}
-} \ No newline at end of file
+}
diff --git a/server/src/test/java/com/vaadin/data/provider/hierarchical/Node.java b/server/src/test/java/com/vaadin/data/provider/hierarchical/Node.java
index c15f713f53..95e961df52 100644
--- a/server/src/test/java/com/vaadin/data/provider/hierarchical/Node.java
+++ b/server/src/test/java/com/vaadin/data/provider/hierarchical/Node.java
@@ -2,7 +2,7 @@ package com.vaadin.data.provider.hierarchical;
import java.io.Serializable;
-public class Node implements Serializable{
+public class Node implements Serializable {
private static int counter = 0;
@@ -27,7 +27,6 @@ public class Node implements Serializable{
}
public String toString() {
- return number + (parent != null ? " [parent: " + parent.toString() + "]"
- : "");
+ return number + (parent != null ? " [parent: " + parent + "]" : "");
}
}