diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-02 10:23:09 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-10-02 11:23:09 +0300 |
commit | 43f4a17f0d17e584e83ea3faaa40ac1def1dd4b1 (patch) | |
tree | 8941d036822a00f7c893278d47ebc071f1236308 /compatibility-client/src/main/java | |
parent | 763a5cbe8c13ff4a169aae9062c643ad1588cea0 (diff) | |
download | vaadin-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.java | 6 |
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; } /** |