]> source.dussan.org Git - vaadin-framework.git/commitdiff
Create setter name in a Turkish compatible manner (#9878)
authorArtur <artur@vaadin.com>
Mon, 28 Aug 2017 13:01:57 +0000 (16:01 +0300)
committerHenri Sara <henri.sara@gmail.com>
Mon, 28 Aug 2017 13:01:57 +0000 (16:01 +0300)
shared/src/main/java/com/vaadin/shared/annotations/DelegateToWidget.java

index bbbc5967615d1a2e6b386d93970e608c37ff6e11..fc4e90d9a851b723ca8d3e2e86d80f352607bf0c 100644 (file)
@@ -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;
         }