From 6aafd5345e1054fdbc51929bdfac72d82207d238 Mon Sep 17 00:00:00 2001 From: Artur Date: Mon, 28 Aug 2017 16:01:57 +0300 Subject: [PATCH] Create setter name in a Turkish compatible manner (#9878) --- .../java/com/vaadin/shared/annotations/DelegateToWidget.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/src/main/java/com/vaadin/shared/annotations/DelegateToWidget.java b/shared/src/main/java/com/vaadin/shared/annotations/DelegateToWidget.java index bbbc596761..fc4e90d9a8 100644 --- a/shared/src/main/java/com/vaadin/shared/annotations/DelegateToWidget.java +++ b/shared/src/main/java/com/vaadin/shared/annotations/DelegateToWidget.java @@ -19,6 +19,8 @@ import java.io.Serializable; import java.lang.annotation.ElementType; import java.lang.annotation.Target; +import com.vaadin.shared.util.SharedUtil; + /** * Signals that the property value from a state class should be forwarded to the * Widget of the corresponding connector instance. @@ -87,8 +89,7 @@ public @interface DelegateToWidget { String annotationValue) { String name = annotationValue; if (name.isEmpty()) { - name = "set" + Character.toUpperCase(propertyName.charAt(0)) - + propertyName.substring(1); + name = "set" + SharedUtil.capitalize(propertyName); } return name; } -- 2.39.5