]> source.dussan.org Git - vaadin-framework.git/commit
Fixed the compare filter to handle subclasses (#17169)
authorPontus Boström <pontus@vaadin.com>
Tue, 26 Jul 2016 09:26:54 +0000 (12:26 +0300)
committerVaadin Code Review <review@vaadin.com>
Mon, 1 Aug 2016 07:53:34 +0000 (07:53 +0000)
commit6688e6617275120bfc39cd31c464fd9b2a594a79
tree0d641b719161bb79386223e479ce26f0f93dd5f7
parent77ad774461cb7a609878515172605787631a1b15
Fixed the compare filter to handle subclasses (#17169)

Earlier the comparision worked only if the item value was a subclass of
the value in comparator, but not in the other way around. Now the
compairision works if the one is a subclass of the other and both
implements Comparable.

Change-Id: I1bcbba94f1263915f838e948ed9d8b68a14aefd0
server/src/main/java/com/vaadin/data/util/filter/Compare.java
server/src/test/java/com/vaadin/data/util/filter/CompareFilterDateTest.java [new file with mode: 0644]