From 3eea4244c10793262b6e337390ec03d8c276f4b1 Mon Sep 17 00:00:00 2001 From: web-padawan Date: Mon, 15 Apr 2024 10:06:06 +0300 Subject: [PATCH] test: update test to fix Sonar warning --- .../tests/validation/CheckboxBasicValidationPage.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vaadin-checkbox-flow-parent/vaadin-checkbox-flow-integration-tests/src/main/java/com/vaadin/flow/component/checkbox/tests/validation/CheckboxBasicValidationPage.java b/vaadin-checkbox-flow-parent/vaadin-checkbox-flow-integration-tests/src/main/java/com/vaadin/flow/component/checkbox/tests/validation/CheckboxBasicValidationPage.java index 372588a0c02..9e1dee30ea5 100644 --- a/vaadin-checkbox-flow-parent/vaadin-checkbox-flow-integration-tests/src/main/java/com/vaadin/flow/component/checkbox/tests/validation/CheckboxBasicValidationPage.java +++ b/vaadin-checkbox-flow-parent/vaadin-checkbox-flow-integration-tests/src/main/java/com/vaadin/flow/component/checkbox/tests/validation/CheckboxBasicValidationPage.java @@ -17,14 +17,12 @@ public CheckboxBasicValidationPage() { @Override protected Checkbox createTestField() { - Checkbox checkbox = new Checkbox() { + return new Checkbox() { @Override protected void validate() { super.validate(); incrementServerValidationCounter(); } }; - - return checkbox; } }