@ -120,14 +129,6 @@ public class DateFormatter implements Formatter<Date> {
@@ -120,14 +129,6 @@ public class DateFormatter implements Formatter<Date> {
@ -55,16 +65,6 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@@ -55,16 +65,6 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@ -80,6 +80,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@@ -80,6 +80,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@ -87,6 +88,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@@ -87,6 +88,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@ -96,6 +98,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@@ -96,6 +98,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@ -103,6 +106,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@@ -103,6 +106,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@ -110,6 +114,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@@ -110,6 +114,7 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@ -118,10 +123,11 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@@ -118,10 +123,11 @@ public class DateFormatterRegistrar implements FormatterRegistrar {
@ -44,7 +44,7 @@ public class DateTimeFormatAnnotationFormatterFactory implements
@@ -44,7 +44,7 @@ public class DateTimeFormatAnnotationFormatterFactory implements
privatestaticfinalSet<Class<?>>FIELD_TYPES;
static{
Set<Class<?>>fieldTypes=newHashSet<Class<?>>();
Set<Class<?>>fieldTypes=newHashSet<Class<?>>(4);
fieldTypes.add(Date.class);
fieldTypes.add(Calendar.class);
fieldTypes.add(Long.class);
@ -82,4 +82,5 @@ public class DateTimeFormatAnnotationFormatterFactory implements
@@ -82,4 +82,5 @@ public class DateTimeFormatAnnotationFormatterFactory implements
@ -34,6 +34,7 @@ public final class DateTimeParser implements Parser<DateTime> {
@@ -34,6 +34,7 @@ public final class DateTimeParser implements Parser<DateTime> {
privatefinalDateTimeFormatterformatter;
/**
*CreateanewDateTimeParser.
*@paramformattertheJodaDateTimeFormatterinstance
@ -42,6 +43,7 @@ public final class DateTimeParser implements Parser<DateTime> {
@@ -42,6 +43,7 @@ public final class DateTimeParser implements Parser<DateTime> {
@ -56,7 +56,7 @@ public class JodaDateTimeFormatAnnotationFormatterFactory
@@ -56,7 +56,7 @@ public class JodaDateTimeFormatAnnotationFormatterFactory
// (if we did not do this, the default byType rules for LocalDate, LocalTime,
// and LocalDateTime would take precedence over the annotation rule, which
// is not what we want)
Set<Class<?>>fieldTypes=newHashSet<Class<?>>(7);
Set<Class<?>>fieldTypes=newHashSet<Class<?>>(8);
fieldTypes.add(ReadableInstant.class);
fieldTypes.add(LocalDate.class);
fieldTypes.add(LocalTime.class);
@ -71,10 +71,6 @@ public class JodaDateTimeFormatAnnotationFormatterFactory
@@ -71,10 +71,6 @@ public class JodaDateTimeFormatAnnotationFormatterFactory
@ -83,20 +79,24 @@ public class JodaDateTimeFormatAnnotationFormatterFactory
@@ -83,20 +79,24 @@ public class JodaDateTimeFormatAnnotationFormatterFactory
@ -70,12 +74,24 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@@ -70,12 +74,24 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@ -83,7 +99,7 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@@ -83,7 +99,7 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@ -95,25 +111,14 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@@ -95,25 +111,14 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@ -126,8 +131,8 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@@ -126,8 +131,8 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@ -141,14 +146,15 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@@ -141,14 +146,15 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@ -176,26 +182,25 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@@ -176,26 +182,25 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
newDateTimeParser(dateTimeFormatter),
ReadableInstant.class);
// In order to retain back compatibility we only register Date/Calendar
// In order to retain backwards compatibility we only register Date/Calendar
// types when a user defined formatter is specified (see SPR-10105)
@ -208,10 +213,10 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@@ -208,10 +213,10 @@ public class JodaTimeFormatterRegistrar implements FormatterRegistrar {
@ -32,6 +32,7 @@ public final class MillisecondInstantPrinter implements Printer<Long> {
@@ -32,6 +32,7 @@ public final class MillisecondInstantPrinter implements Printer<Long> {
privatefinalDateTimeFormatterformatter;
/**
*CreateanewReadableInstantPrinter.
*@paramformattertheJodaDateTimeFormatterinstance
@ -40,6 +41,7 @@ public final class MillisecondInstantPrinter implements Printer<Long> {
@@ -40,6 +41,7 @@ public final class MillisecondInstantPrinter implements Printer<Long> {
@ -32,6 +33,7 @@ public final class ReadableInstantPrinter implements Printer<ReadableInstant> {
@@ -32,6 +33,7 @@ public final class ReadableInstantPrinter implements Printer<ReadableInstant> {
privatefinalDateTimeFormatterformatter;
/**
*CreateanewReadableInstantPrinter.
*@paramformattertheJodaDateTimeFormatterinstance
@ -40,6 +42,7 @@ public final class ReadableInstantPrinter implements Printer<ReadableInstant> {
@@ -40,6 +42,7 @@ public final class ReadableInstantPrinter implements Printer<ReadableInstant> {
@ -33,6 +33,7 @@ public final class ReadablePartialPrinter implements Printer<ReadablePartial> {
@@ -33,6 +33,7 @@ public final class ReadablePartialPrinter implements Printer<ReadablePartial> {
privatefinalDateTimeFormatterformatter;
/**
*CreateanewReadableInstantPrinter.
*@paramformattertheJodaDateTimeFormatterinstance
@ -41,6 +42,7 @@ public final class ReadablePartialPrinter implements Printer<ReadablePartial> {
@@ -41,6 +42,7 @@ public final class ReadablePartialPrinter implements Printer<ReadablePartial> {