aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-client/src/main/java
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-02 10:23:09 +0200
committerHenri Sara <henri.sara@gmail.com>2017-10-02 11:23:09 +0300
commit43f4a17f0d17e584e83ea3faaa40ac1def1dd4b1 (patch)
tree8941d036822a00f7c893278d47ebc071f1236308 /compatibility-client/src/main/java
parent763a5cbe8c13ff4a169aae9062c643ad1588cea0 (diff)
downloadvaadin-framework-43f4a17f0d17e584e83ea3faaa40ac1def1dd4b1.tar.gz
vaadin-framework-43f4a17f0d17e584e83ea3faaa40ac1def1dd4b1.zip
Simplify conditional logic. (#10122)
And remove unused imports.
Diffstat (limited to 'compatibility-client/src/main/java')
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java
index cd1754edf8..9bfb6c1eeb 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java
@@ -1686,11 +1686,7 @@ public class VFilterSelect extends Composite
* last page
*/
public boolean hasNextPage() {
- if (pageLength > 0 && totalMatches > (currentPage + 1) * pageLength) {
- return true;
- } else {
- return false;
- }
+ return pageLength > 0 && totalMatches > (currentPage + 1) * pageLength;
}
/**