summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
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;
}