diff options
author | Artur Signell <artur@vaadin.com> | 2016-08-10 10:02:21 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-10 16:09:24 +0300 |
commit | 192e93a814f05dc8c5cc7a01b7264bc0a8a9dec7 (patch) | |
tree | 784646d65183b23577e7f8b462f0a23ff9c1502f /server/src/main/java/com/vaadin/ui/DateField.java | |
parent | 314eb377ddc3112fbcd0b55f214ab6f0b7c606a9 (diff) | |
download | vaadin-framework-192e93a814f05dc8c5cc7a01b7264bc0a8a9dec7.tar.gz vaadin-framework-192e93a814f05dc8c5cc7a01b7264bc0a8a9dec7.zip |
Move and rename converters into com.vaadin.legacy.data.util.converter.Legacy*
Change-Id: I75fd33e66c8c5c265bc60cce58ff639a5d5642ab
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/DateField.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/DateField.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/ui/DateField.java b/server/src/main/java/com/vaadin/ui/DateField.java index f5a582f571..1630053ee1 100644 --- a/server/src/main/java/com/vaadin/ui/DateField.java +++ b/server/src/main/java/com/vaadin/ui/DateField.java @@ -29,7 +29,6 @@ import java.util.logging.Logger; import org.jsoup.nodes.Element; import com.vaadin.data.Property; -import com.vaadin.data.util.converter.Converter; import com.vaadin.event.FieldEvents; import com.vaadin.event.FieldEvents.BlurEvent; import com.vaadin.event.FieldEvents.BlurListener; @@ -38,6 +37,7 @@ import com.vaadin.event.FieldEvents.FocusListener; import com.vaadin.legacy.data.Validator; import com.vaadin.legacy.data.Validator.InvalidValueException; import com.vaadin.legacy.data.validator.LegacyDateRangeValidator; +import com.vaadin.legacy.data.util.converter.LegacyConverter; import com.vaadin.legacy.ui.LegacyAbstractField; import com.vaadin.legacy.ui.LegacyField; import com.vaadin.server.PaintException; @@ -558,7 +558,7 @@ public class DateField extends LegacyAbstractField<Date> implements * this case the invalid text remains in the DateField. */ markAsDirty(); - } catch (Converter.ConversionException e) { + } catch (LegacyConverter.ConversionException e) { /* * Datefield now contains some text that could't be parsed @@ -659,13 +659,13 @@ public class DateField extends LegacyAbstractField<Date> implements * * @param dateString * @return parsed Date - * @throws Converter.ConversionException + * @throws LegacyConverter.ConversionException * to keep the old value and indicate an error */ protected Date handleUnparsableDateString(String dateString) - throws Converter.ConversionException { + throws LegacyConverter.ConversionException { currentParseErrorMessage = null; - throw new Converter.ConversionException(getParseErrorMessage()); + throw new LegacyConverter.ConversionException(getParseErrorMessage()); } /* Property features */ |