From ed5ad86b114ccb4d6ab08e19a734bdb8b3342399 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 27 May 2015 22:03:26 +0300 Subject: Ensure method and property names are capitalized using English locale (#13389) Change-Id: Idde4fc54950f2bb83e0bb8d36a84a5bf075eb8de --- .../src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'client') 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"; -- cgit v1.2.3