Skip to content

Commit 078543c

Browse files
committed
Deprecate Joda time support
This commit deprecates the Joda time support and schedules it for removal in 6.0. Closes gh-25736
1 parent 7dbb40f commit 078543c

15 files changed

+34
-12
lines changed

spring-context/src/main/java/org/springframework/format/datetime/joda/DateTimeFormatterFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
* @see #setStyle
4343
* @see #setIso
4444
* @see DateTimeFormatterFactoryBean
45+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
4546
*/
47+
@Deprecated
4648
public class DateTimeFormatterFactory {
4749

4850
@Nullable

spring-context/src/main/java/org/springframework/format/datetime/joda/DateTimeFormatterFactoryBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
* @see #setIso
3434
* @see #setStyle
3535
* @see DateTimeFormatterFactory
36+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
3637
*/
38+
@Deprecated
3739
public class DateTimeFormatterFactoryBean extends DateTimeFormatterFactory
3840
implements FactoryBean<DateTimeFormatter>, InitializingBean {
3941

spring-context/src/main/java/org/springframework/format/datetime/joda/DateTimeParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
*
3030
* @author Keith Donald
3131
* @since 3.0
32+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
3233
*/
34+
@Deprecated
3335
public final class DateTimeParser implements Parser<DateTime> {
3436

3537
private final DateTimeFormatter formatter;

spring-context/src/main/java/org/springframework/format/datetime/joda/JodaDateTimeFormatAnnotationFormatterFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
* @author Juergen Hoeller
4646
* @since 3.0
4747
* @see DateTimeFormat
48+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
4849
*/
50+
@Deprecated
4951
public class JodaDateTimeFormatAnnotationFormatterFactory extends EmbeddedValueResolutionSupport
5052
implements AnnotationFormatterFactory<DateTimeFormat> {
5153

spring-context/src/main/java/org/springframework/format/datetime/joda/JodaTimeContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
* @author Keith Donald
3737
* @since 3.0
3838
* @see JodaTimeContextHolder
39+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
3940
*/
41+
@Deprecated
4042
public class JodaTimeContext {
4143

4244
@Nullable

spring-context/src/main/java/org/springframework/format/datetime/joda/JodaTimeContextHolder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
* @author Juergen Hoeller
3232
* @since 3.0
3333
* @see org.springframework.context.i18n.LocaleContextHolder
34+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
3435
*/
36+
@Deprecated
3537
public final class JodaTimeContextHolder {
3638

3739
private static final ThreadLocal<JodaTimeContext> jodaTimeContextHolder =

spring-context/src/main/java/org/springframework/format/datetime/joda/JodaTimeFormatterRegistrar.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
* @see FormatterRegistrar#registerFormatters
5656
* @see org.springframework.format.datetime.DateFormatterRegistrar
5757
* @see DateTimeFormatterFactoryBean
58+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
5859
*/
60+
@Deprecated
5961
public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
6062

6163
private enum Type {DATE, TIME, DATE_TIME}

spring-context/src/main/java/org/springframework/format/datetime/joda/LocalDateParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
*
3131
* @author Juergen Hoeller
3232
* @since 4.0
33+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
3334
*/
35+
@Deprecated
3436
public final class LocalDateParser implements Parser<LocalDate> {
3537

3638
private final DateTimeFormatter formatter;

spring-context/src/main/java/org/springframework/format/datetime/joda/LocalDateTimeParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
*
3131
* @author Juergen Hoeller
3232
* @since 4.0
33+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
3334
*/
35+
@Deprecated
3436
public final class LocalDateTimeParser implements Parser<LocalDateTime> {
3537

3638
private final DateTimeFormatter formatter;

spring-context/src/main/java/org/springframework/format/datetime/joda/LocalTimeParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
*
3131
* @author Juergen Hoeller
3232
* @since 4.0
33+
* @deprecated as of 5.3.0, scheduled for removal in 6.0.
3334
*/
35+
@Deprecated
3436
public final class LocalTimeParser implements Parser<LocalTime> {
3537

3638
private final DateTimeFormatter formatter;

0 commit comments

Comments
 (0)