From a5e7562a894b594c3b3e016ff4d307a92f98e22e Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Wed, 11 Dec 2024 12:52:10 +0100 Subject: [PATCH] docs: fix incorrect getOffset() usage in ComboBox JavaDoc (#6900) (#6901) Co-authored-by: Serhii Kulykov --- .../com/vaadin/flow/component/combobox/ComboBoxBase.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vaadin-combo-box-flow-parent/vaadin-combo-box-flow/src/main/java/com/vaadin/flow/component/combobox/ComboBoxBase.java b/vaadin-combo-box-flow-parent/vaadin-combo-box-flow/src/main/java/com/vaadin/flow/component/combobox/ComboBoxBase.java index 29730c63d1b..8640ea63552 100644 --- a/vaadin-combo-box-flow-parent/vaadin-combo-box-flow/src/main/java/com/vaadin/flow/component/combobox/ComboBoxBase.java +++ b/vaadin-combo-box-flow-parent/vaadin-combo-box-flow/src/main/java/com/vaadin/flow/component/combobox/ComboBoxBase.java @@ -801,7 +801,7 @@ public ComboBoxLazyDataView getLazyDataView() { *

* {@code comboBox.setItemsWithFilterConverter( * query -> orderService.getOrdersByCount(query.getFilter(), - * query.getOffset, + * query.getOffset(), * query.getLimit()), * orderCountStr -> Integer.parseInt(orderCountStr));} Note: Validations for * orderCountStr are omitted for briefness. @@ -840,7 +840,7 @@ public ComboBoxLazyDataView setItemsWithFilterConverter( *

* {@code comboBox.setItemsWithFilterConverter( * query -> orderService.getOrdersByCount(query.getFilter(), - * query.getOffset, + * query.getOffset(), * query.getLimit()), * query -> orderService.getSize(query.getFilter()), * orderCountStr -> Integer.parseInt(orderCountStr));} Note: Validations for @@ -921,14 +921,14 @@ public ComboBoxLazyDataView setItems( * exact size. Usage example without component provided filter: *

* {@code comboBox.setItems( - * query -> orderService.getOrders(query.getOffset, query.getLimit()), + * query -> orderService.getOrders(query.getOffset(), query.getLimit()), * query -> orderService.getSize());} *

* Since ComboBox supports filtering, it can be fetched via * query.getFilter(): *

* {@code comboBox.setItems( - * query -> orderService.getOrders(query.getFilter(), query.getOffset, + * query -> orderService.getOrders(query.getFilter(), query.getOffset(), * query.getLimit()), * query -> orderService.getSize(query.getFilter()));} *