diff options
author | Matti Hosio <mhosio@vaadin.com> | 2014-12-10 10:00:52 +0200 |
---|---|---|
committer | Matti Hosio <mhosio@vaadin.com> | 2014-12-10 10:07:00 +0200 |
commit | de839dca9100e991304dd347f595e2f8f423acb9 (patch) | |
tree | bfd7165b6a0d0cf090b5cc5d5c41804a5a542e7e /server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java | |
parent | 786fed171a52379bbabc7ddffff58172e5f90d2b (diff) | |
download | vaadin-framework-de839dca9100e991304dd347f595e2f8f423acb9.tar.gz vaadin-framework-de839dca9100e991304dd347f595e2f8f423acb9.zip |
Remove locale utils dependency since that is not available in the server dependencies
Also minor fix in one unit test
Change-Id: I6a15cda5857a167327138f0ac5d1fb02629ef0d6
Diffstat (limited to 'server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java')
-rw-r--r-- | server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java b/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java index daebb1c09a..49afe7bea8 100644 --- a/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java +++ b/server/src/com/vaadin/ui/declarative/DesignAttributeHandler.java @@ -34,7 +34,6 @@ import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; -import org.apache.commons.lang3.LocaleUtils; import org.jsoup.nodes.Attribute; import org.jsoup.nodes.Attributes; import org.jsoup.nodes.Element; @@ -336,9 +335,6 @@ public class DesignAttributeHandler { if (targetType == Double.TYPE || targetType == Double.class) { return Double.valueOf(value); } - if (targetType == Locale.class) { - return LocaleUtils.toLocale(value); - } if (targetType == Resource.class) { return parseResource(value); } @@ -360,9 +356,7 @@ public class DesignAttributeHandler { // value is not null. How to represent null value in attributes? return ""; } - if (sourceType == Locale.class) { - return value != null ? ((Locale) value).toString() : null; - } else if (sourceType == Resource.class) { + if (sourceType == Resource.class) { if (value instanceof ExternalResource) { return ((ExternalResource) value).getURL(); } else if (value instanceof ThemeResource) { @@ -447,8 +441,7 @@ public class DesignAttributeHandler { private static final List<Class<?>> supportedClasses = Arrays .asList(new Class<?>[] { String.class, Boolean.class, Integer.class, Byte.class, Short.class, Long.class, - Character.class, Float.class, Double.class, Locale.class, - Resource.class }); + Character.class, Float.class, Double.class, Resource.class }); /** * Returns true if the specified value type is supported by this class. |