summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur <artur@vaadin.com>2017-08-28 16:01:57 +0300
committerHenri Sara <henri.sara@gmail.com>2017-08-29 17:36:54 +0300
commit6aafd5345e1054fdbc51929bdfac72d82207d238 (patch)
tree272a1f95e93877226a7f81aea0b96935074c1f22
parent5a8cd81b624faf7bec44471f2b6aa556ad3effc8 (diff)
downloadvaadin-framework-6aafd5345e1054fdbc51929bdfac72d82207d238.tar.gz
vaadin-framework-6aafd5345e1054fdbc51929bdfac72d82207d238.zip
Create setter name in a Turkish compatible manner (#9878)
-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;
}