|
|
@@ -1170,10 +1170,6 @@ public class DateFormatters {
|
|
|
/*
|
|
|
* Returns a formatter for a four digit weekyear. (YYYY)
|
|
|
*/
|
|
|
- private static final DateFormatter WEEK_YEAR = new JavaDateFormatter("week_year",
|
|
|
- new DateTimeFormatterBuilder().appendValue(WEEK_FIELDS_ROOT.weekBasedYear()).toFormatter(Locale.ROOT)
|
|
|
- .withResolverStyle(ResolverStyle.STRICT));
|
|
|
-
|
|
|
private static final DateFormatter WEEKYEAR = new JavaDateFormatter("weekyear",
|
|
|
new DateTimeFormatterBuilder().appendValue(WEEK_FIELDS_ROOT.weekBasedYear()).toFormatter(Locale.ROOT)
|
|
|
.withResolverStyle(ResolverStyle.STRICT));
|
|
|
@@ -1723,11 +1719,6 @@ public class DateFormatters {
|
|
|
return WEEK_DATE_TIME;
|
|
|
} else if (FormatNames.WEEK_DATE_TIME_NO_MILLIS.matches(input)) {
|
|
|
return WEEK_DATE_TIME_NO_MILLIS;
|
|
|
- } else if (FormatNames.WEEK_YEAR.matches(input)) {
|
|
|
- deprecationLogger.getOrCompute()
|
|
|
- .deprecate("week_year_format_name", "Format name \"week_year\" is deprecated and will be removed in a future version. " +
|
|
|
- "Use \"weekyear\" format instead");
|
|
|
- return WEEK_YEAR;
|
|
|
} else if (FormatNames.WEEKYEAR.matches(input)) {
|
|
|
return WEEKYEAR;
|
|
|
} else if (FormatNames.WEEK_YEAR_WEEK.matches(input)) {
|