diff options
author | Teemu Pòˆntelin <teemu@vaadin.com> | 2014-05-31 14:37:49 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-06-06 08:35:59 +0000 |
commit | 8233b1c7bf750cb7f2518ad8c2b1fb1679dfa016 (patch) | |
tree | 9432ce0d0ec2d25a6f21e05316e3fac72a16fce1 /server/src/com/vaadin/ui/DateField.java | |
parent | bd25e72f51059bd68473c1b0feba50d5f6ee06e0 (diff) | |
download | vaadin-framework-8233b1c7bf750cb7f2518ad8c2b1fb1679dfa016.tar.gz vaadin-framework-8233b1c7bf750cb7f2518ad8c2b1fb1679dfa016.zip |
Moved initialization of a static map to the static initialization block (#12270)
Change-Id: I82c77edf5c17c712350cb64831b305b4c8363cf7
Diffstat (limited to 'server/src/com/vaadin/ui/DateField.java')
-rw-r--r-- | server/src/com/vaadin/ui/DateField.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/DateField.java b/server/src/com/vaadin/ui/DateField.java index 7ab7732079..e98b1e1b31 100644 --- a/server/src/com/vaadin/ui/DateField.java +++ b/server/src/com/vaadin/ui/DateField.java @@ -152,7 +152,8 @@ public class DateField extends AbstractField<Date> implements private String dateOutOfRangeMessage = "Date is out of allowed range"; private DateRangeValidator currentRangeValidator; - { + + static { variableNameForResolution.put(Resolution.SECOND, "sec"); variableNameForResolution.put(Resolution.MINUTE, "min"); variableNameForResolution.put(Resolution.HOUR, "hour"); |