summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur <artur@vaadin.com>2017-08-28 16:01:57 +0300
committerHenri Sara <henri.sara@gmail.com>2017-08-28 16:01:57 +0300
commite9d87f59dd9389f39d9a0a5a2f62e4095b12467d (patch)
tree94dfdd68c823e91ec78125538905ca7a6f174581 /shared
parentc67f157e4581610a1efd4208c6f7356cc28f51f6 (diff)
downloadvaadin-framework-e9d87f59dd9389f39d9a0a5a2f62e4095b12467d.tar.gz
vaadin-framework-e9d87f59dd9389f39d9a0a5a2f62e4095b12467d.zip
Create setter name in a Turkish compatible manner (#9878)
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/annotations/DelegateToWidget.java5
1 files 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;
}