aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-09-16 10:09:39 +0300
committerVaadin Code Review <review@vaadin.com>2014-09-25 07:35:18 +0000
commitb6e6d4eaac7961d9cd09ff009b4716617c7c8d85 (patch)
tree8c4648bc9a5604745562a4f43342419b1d20551e /shared
parent51fef5e8cb39f96dac11f4b3e2d772525d3ebfe6 (diff)
downloadvaadin-framework-b6e6d4eaac7961d9cd09ff009b4716617c7c8d85.tar.gz
vaadin-framework-b6e6d4eaac7961d9cd09ff009b4716617c7c8d85.zip
Remove Calendar dependency (#14668)
This can cause GWT compilation problems as java.util.Calendar is not available in GWT Change-Id: Ia13d8f433ac43fcfd670c8e05b1295d3c64327cf
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/datefield/Resolution.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/src/com/vaadin/shared/ui/datefield/Resolution.java b/shared/src/com/vaadin/shared/ui/datefield/Resolution.java
index 6d467e233c..689db11188 100644
--- a/shared/src/com/vaadin/shared/ui/datefield/Resolution.java
+++ b/shared/src/com/vaadin/shared/ui/datefield/Resolution.java
@@ -16,7 +16,6 @@
package com.vaadin.shared.ui.datefield;
import java.util.ArrayList;
-import java.util.Calendar;
import java.util.List;
/**
@@ -26,8 +25,9 @@ import java.util.List;
* @since 7.0
*/
public enum Resolution {
- SECOND(Calendar.SECOND), MINUTE(Calendar.MINUTE), HOUR(Calendar.HOUR_OF_DAY), DAY(
- Calendar.DAY_OF_MONTH), MONTH(Calendar.MONTH), YEAR(Calendar.YEAR);
+ // Values from Calendar.SECOND etc. Set as ints to avoid Calendar dependency
+ // (does not exist on the client side)
+ SECOND(13), MINUTE(12), HOUR(11), DAY(5), MONTH(2), YEAR(1);
private int calendarField;
@@ -36,7 +36,7 @@ public enum Resolution {
}
/**
- * Returns the field in {@link Calendar} that corresponds to this
+ * Returns the field in java.util.Calendar that corresponds to this
* resolution.
*
* @return one of the field numbers used by Calendar