diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-11-01 10:36:47 +0100 |
---|---|---|
committer | Pekka Maanpää <pekkamaa@vaadin.com> | 2017-11-01 11:36:47 +0200 |
commit | 3763f3f94cbcb0b5035ba547accf123b5c50ed3d (patch) | |
tree | 762058cc800575af022601d39fcdd3326a6dd078 /client/src/test/java | |
parent | 04905e1e2eb81770d813abda6a516254e541443d (diff) | |
download | vaadin-framework-3763f3f94cbcb0b5035ba547accf123b5c50ed3d.tar.gz vaadin-framework-3763f3f94cbcb0b5035ba547accf123b5c50ed3d.zip |
Use lambda expressions. (#10268)
Diffstat (limited to 'client/src/test/java')
-rw-r--r-- | client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java b/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java index 7d9bf530ce..93a5be4de0 100644 --- a/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java +++ b/client/src/test/java/com/vaadin/client/ui/grid/ListDataSourceTest.java @@ -19,7 +19,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.Arrays; -import java.util.Comparator; import org.easymock.EasyMock; import org.junit.Test; @@ -178,12 +177,7 @@ public class ListDataSourceTest { // TODO Should be simplified to sort(). No point in providing these // trivial comparators. - ds.sort(new Comparator<Integer>() { - @Override - public int compare(Integer o1, Integer o2) { - return o1.compareTo(o2); - } - }); + ds.sort((o1, o2) -> o1.compareTo(o2)); assertTrue(Arrays.equals(ds.asList().toArray(), new Integer[] { 1, 2, 3, 3, 4 })); |