Java Code Examples for java.time.format.ResolverStyle#SMART
The following examples show how to use
java.time.format.ResolverStyle#SMART .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractChronology.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
ChronoLocalDate resolveYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); } int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR); ValueRange domRange = range(DAY_OF_MONTH); int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); if (resolverStyle == ResolverStyle.SMART) { // previous valid try { return date(y, moy, dom); } catch (DateTimeException ex) { return date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); } } return date(y, moy, dom); }
Example 2
Source File: AbstractChronology.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
ChronoLocalDate resolveYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); } int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR); ValueRange domRange = range(DAY_OF_MONTH); int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); if (resolverStyle == ResolverStyle.SMART) { // previous valid try { return date(y, moy, dom); } catch (DateTimeException ex) { return date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); } } return date(y, moy, dom); }
Example 3
Source File: AbstractChronology.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
ChronoLocalDate resolveYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); } int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR); ValueRange domRange = range(DAY_OF_MONTH); int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); if (resolverStyle == ResolverStyle.SMART) { // previous valid try { return date(y, moy, dom); } catch (DateTimeException ex) { return date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); } } return date(y, moy, dom); }
Example 4
Source File: IsoChronology.java From JDKSourceCode1.8 with MIT License | 6 votes |
@Override // override for performance LocalDate resolveYMD(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = YEAR.checkValidIntValue(fieldValues.remove(YEAR)); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); } int moy = MONTH_OF_YEAR.checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR)); int dom = DAY_OF_MONTH.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH)); if (resolverStyle == ResolverStyle.SMART) { // previous valid if (moy == 4 || moy == 6 || moy == 9 || moy == 11) { dom = Math.min(dom, 30); } else if (moy == 2) { dom = Math.min(dom, Month.FEBRUARY.length(Year.isLeap(y))); } } return LocalDate.of(y, moy, dom); }
Example 5
Source File: TCKResolverStyle.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="resolverStyle") Object[][] data_resolverStyle() { return new Object[][] { {"2000/15/30", ResolverStyle.LENIENT, null, 2001, 3, 30}, {"2000/02/30", ResolverStyle.SMART, null, 2000, 2, 29}, {"2000/02/29", ResolverStyle.STRICT, null, 2000, 2, 29}, {"2000/15/30 CE", ResolverStyle.LENIENT, null, 2001, 3, 30}, {"2000/02/30 CE", ResolverStyle.SMART, null, 2000, 2, 29}, {"5/02/29 BCE", ResolverStyle.STRICT, null, 5, 2, 29}, {"4/02/29 BCE", ResolverStyle.STRICT, DateTimeException.class, -1, -1, -1}, {"2000/02/30 CE", ResolverStyle.STRICT, DateTimeException.class, -1, -1, -1}, }; }
Example 6
Source File: TCKResolverStyle.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="resolverStyle") Object[][] data_resolverStyle() { return new Object[][] { {"2000/15/30", ResolverStyle.LENIENT, null, 2001, 3, 30}, {"2000/02/30", ResolverStyle.SMART, null, 2000, 2, 29}, {"2000/02/29", ResolverStyle.STRICT, null, 2000, 2, 29}, {"2000/15/30 CE", ResolverStyle.LENIENT, null, 2001, 3, 30}, {"2000/02/30 CE", ResolverStyle.SMART, null, 2000, 2, 29}, {"5/02/29 BCE", ResolverStyle.STRICT, null, 5, 2, 29}, {"4/02/29 BCE", ResolverStyle.STRICT, DateTimeException.class, -1, -1, -1}, {"2000/02/30 CE", ResolverStyle.STRICT, DateTimeException.class, -1, -1, -1}, }; }
Example 7
Source File: AbstractChronology.java From desugar_jdk_libs with GNU General Public License v2.0 | 6 votes |
ChronoLocalDate resolveYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math8.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math8.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); } int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR); ValueRange domRange = range(DAY_OF_MONTH); int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); if (resolverStyle == ResolverStyle.SMART) { // previous valid try { return date(y, moy, dom); } catch (DateTimeException ex) { return date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); } } return date(y, moy, dom); }
Example 8
Source File: IsoChronology.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override // override for performance LocalDate resolveYMD(Map <TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = YEAR.checkValidIntValue(fieldValues.remove(YEAR)); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return LocalDate.of(y, 1, 1).plusMonths(months).plusDays(days); } int moy = MONTH_OF_YEAR.checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR)); int dom = DAY_OF_MONTH.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH)); if (resolverStyle == ResolverStyle.SMART) { // previous valid if (moy == 4 || moy == 6 || moy == 9 || moy == 11) { dom = Math.min(dom, 30); } else if (moy == 2) { dom = Math.min(dom, Month.FEBRUARY.length(Year.isLeap(y))); } } return LocalDate.of(y, moy, dom); }
Example 9
Source File: AbstractChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
ChronoLocalDate resolveYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); } int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR); ValueRange domRange = range(DAY_OF_MONTH); int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); if (resolverStyle == ResolverStyle.SMART) { // previous valid try { return date(y, moy, dom); } catch (DateTimeException ex) { return date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); } } return date(y, moy, dom); }
Example 10
Source File: AbstractChronology.java From JDKSourceCode1.8 with MIT License | 6 votes |
ChronoLocalDate resolveYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { int y = range(YEAR).checkValidIntValue(fieldValues.remove(YEAR), YEAR); if (resolverStyle == ResolverStyle.LENIENT) { long months = Math.subtractExact(fieldValues.remove(MONTH_OF_YEAR), 1); long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); } int moy = range(MONTH_OF_YEAR).checkValidIntValue(fieldValues.remove(MONTH_OF_YEAR), MONTH_OF_YEAR); ValueRange domRange = range(DAY_OF_MONTH); int dom = domRange.checkValidIntValue(fieldValues.remove(DAY_OF_MONTH), DAY_OF_MONTH); if (resolverStyle == ResolverStyle.SMART) { // previous valid try { return date(y, moy, dom); } catch (DateTimeException ex) { return date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); } } return date(y, moy, dom); }
Example 11
Source File: TCKThaiBuddhistChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 12
Source File: TCKIsoChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 13
Source File: TCKMinguoChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 14
Source File: TCKIsoChronology.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 15
Source File: TCKIsoChronology.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 16
Source File: TCKThaiBuddhistChronology.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 17
Source File: TCKThaiBuddhistChronology.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 18
Source File: TCKMinguoChronology.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 19
Source File: TCKMinguoChronology.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }
Example 20
Source File: TCKThaiBuddhistChronology.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@DataProvider(name = "resolve_yearOfEra") Object[][] data_resolve_yearOfEra() { return new Object[][] { // era only {ResolverStyle.STRICT, -1, null, null, null, null}, {ResolverStyle.SMART, -1, null, null, null, null}, {ResolverStyle.LENIENT, -1, null, null, null, null}, {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0}, {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1}, {ResolverStyle.STRICT, 2, null, null, null, null}, {ResolverStyle.SMART, 2, null, null, null, null}, {ResolverStyle.LENIENT, 2, null, null, null, null}, // era and year-of-era {ResolverStyle.STRICT, -1, 2012, null, null, null}, {ResolverStyle.SMART, -1, 2012, null, null, null}, {ResolverStyle.LENIENT, -1, 2012, null, null, null}, {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, 2, 2012, null, null, null}, {ResolverStyle.SMART, 2, 2012, null, null, null}, {ResolverStyle.LENIENT, 2, 2012, null, null, null}, // year-of-era only {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012}, {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}, // year-of-era and year {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012}, {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011}, {ResolverStyle.STRICT, null, 2012, 2013, null, null}, {ResolverStyle.SMART, null, 2012, 2013, null, null}, {ResolverStyle.LENIENT, null, 2012, 2013, null, null}, {ResolverStyle.STRICT, null, 2012, -2013, null, null}, {ResolverStyle.SMART, null, 2012, -2013, null, null}, {ResolverStyle.LENIENT, null, 2012, -2013, null, null}, }; }