diff options
author | Artur Signell <artur@vaadin.com> | 2015-05-27 22:03:26 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-05-29 13:33:47 +0000 |
commit | ed5ad86b114ccb4d6ab08e19a734bdb8b3342399 (patch) | |
tree | fa6bfdda2d616589acc2205ad3da84e9f513a691 /client | |
parent | 4a79c3c5c5cf14dde6f696a0fe924227d00a0ec5 (diff) | |
download | vaadin-framework-ed5ad86b114ccb4d6ab08e19a734bdb8b3342399.tar.gz vaadin-framework-ed5ad86b114ccb4d6ab08e19a734bdb8b3342399.zip |
Ensure method and property names are capitalized using English locale (#13389)
Change-Id: Idde4fc54950f2bb83e0bb8d36a84a5bf075eb8de
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java b/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java index a0ef1fbb3e..bef506b492 100644 --- a/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java +++ b/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java @@ -32,6 +32,7 @@ import com.vaadin.shared.ui.Connect; import com.vaadin.shared.ui.LayoutClickRpc; import com.vaadin.shared.ui.csslayout.CssLayoutServerRpc; import com.vaadin.shared.ui.csslayout.CssLayoutState; +import com.vaadin.shared.util.SharedUtil; import com.vaadin.ui.CssLayout; /** @@ -160,13 +161,7 @@ public class CssLayoutConnector extends AbstractLayoutConnector { * @return A string converted to camelcase */ private static final String makeCamelCase(String cssProperty) { - // TODO this might be cleaner to implement with regexp - while (cssProperty.contains("-")) { - int indexOf = cssProperty.indexOf("-"); - cssProperty = cssProperty.substring(0, indexOf) - + String.valueOf(cssProperty.charAt(indexOf + 1)) - .toUpperCase() + cssProperty.substring(indexOf + 2); - } + cssProperty = SharedUtil.dashSeparatedToCamelCase(cssProperty); if ("float".equals(cssProperty)) { if (BrowserInfo.get().isIE()) { return "styleFloat"; |