2323import java .util .Arrays ;
2424import java .util .Objects ;
2525import java .util .UUID ;
26- import java .util .function .Consumer ;
2726
2827import com .vaadin .flow .component .Direction ;
2928import com .vaadin .flow .component .UI ;
@@ -488,11 +487,11 @@ public interface ExtendedClientDetailsReceiver extends Serializable {
488487 * If details are not yet available, this method returns a placeholder
489488 * instance with default values (dimensions set to -1). If you need to fetch
490489 * the actual values in such cases, use
491- * {@link ExtendedClientDetails#refresh(Consumer )} to explicitly retrieve
492- * updated values from the browser.
490+ * {@link ExtendedClientDetails#refresh(SerializableConsumer )} to explicitly
491+ * retrieve updated values from the browser.
493492 * <p>
494493 * To refresh the cached values with updated data from the browser at any
495- * time, use {@link ExtendedClientDetails#refresh(Consumer )}.
494+ * time, use {@link ExtendedClientDetails#refresh(SerializableConsumer )}.
496495 *
497496 * @return the extended client details (never {@code null})
498497 */
@@ -508,7 +507,8 @@ public ExtendedClientDetails getExtendedClientDetails() {
508507 * @param receiver
509508 * the callback to which the details are provided
510509 * @deprecated Use {@link #getExtendedClientDetails()} to get the cached
511- * details, or {@link ExtendedClientDetails#refresh(Consumer)}
510+ * details, or
511+ * {@link ExtendedClientDetails#refresh(SerializableConsumer)}
512512 * to refresh the cached values.
513513 */
514514 @ Deprecated
0 commit comments