File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-context/src/main/java/org/springframework/format/support Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
39
39
* {@link DefaultConversionService#addDefaultConverters addDefaultConverters} method.
40
40
*
41
41
* <p>Automatically registers formatters for JSR-354 Money & Currency, JSR-310 Date-Time
42
- * and/or Joda-Time, depending on the presence of the corresponding API on the classpath.
42
+ * and/or Joda-Time 2.x , depending on the presence of the corresponding API on the classpath.
43
43
*
44
44
* @author Chris Beams
45
45
* @author Juergen Hoeller
@@ -54,7 +54,7 @@ public class DefaultFormattingConversionService extends FormattingConversionServ
54
54
static {
55
55
ClassLoader classLoader = DefaultFormattingConversionService .class .getClassLoader ();
56
56
jsr354Present = ClassUtils .isPresent ("javax.money.MonetaryAmount" , classLoader );
57
- jodaTimePresent = ClassUtils .isPresent ("org.joda.time.LocalDate " , classLoader );
57
+ jodaTimePresent = ClassUtils .isPresent ("org.joda.time.YearMonth " , classLoader );
58
58
}
59
59
60
60
You can’t perform that action at this time.
0 commit comments