diff --git a/spring-context/src/main/java/org/springframework/format/support/DefaultFormattingConversionService.java b/spring-context/src/main/java/org/springframework/format/support/DefaultFormattingConversionService.java index e3e97fcaddd..2c7c60a0410 100644 --- a/spring-context/src/main/java/org/springframework/format/support/DefaultFormattingConversionService.java +++ b/spring-context/src/main/java/org/springframework/format/support/DefaultFormattingConversionService.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,6 +37,9 @@ import org.springframework.util.StringValueResolver; * as {@code DefaultConversionService} exposes its own * {@link DefaultConversionService#addDefaultConverters addDefaultConverters} method. * + *
Automatically registers formatters for JSR-354 Money & Currency, JSR-310 Date-Time
+ * and/or Joda-Time, depending on the presence of the corresponding API on the classpath.
+ *
* @author Chris Beams
* @author Juergen Hoeller
* @since 3.1
@@ -92,9 +95,10 @@ public class DefaultFormattingConversionService extends FormattingConversionServ
/**
- * Add formatters appropriate for most environments, including number formatters and a Joda-Time
- * date formatter if Joda-Time is present on the classpath.
- * @param formatterRegistry the service to register default formatters against
+ * Add formatters appropriate for most environments: including number formatters,
+ * JSR-354 Money & Currency formatters, JSR-310 Date-Time and/or Joda-Time formatters,
+ * depending on the presence of the corresponding API on the classpath.
+ * @param formatterRegistry the service to register default formatters with
*/
public static void addDefaultFormatters(FormatterRegistry formatterRegistry) {
// Default handling of number values
diff --git a/spring-web/src/main/java/org/springframework/web/util/WebUtils.java b/spring-web/src/main/java/org/springframework/web/util/WebUtils.java
index a460d0c0c59..7e703788127 100644
--- a/spring-web/src/main/java/org/springframework/web/util/WebUtils.java
+++ b/spring-web/src/main/java/org/springframework/web/util/WebUtils.java
@@ -23,7 +23,6 @@ import java.util.Enumeration;
import java.util.Map;
import java.util.StringTokenizer;
import java.util.TreeMap;
-
import javax.servlet.ServletContext;
import javax.servlet.ServletRequest;
import javax.servlet.ServletRequestWrapper;
@@ -752,7 +751,7 @@ public abstract class WebUtils {
* keys {@code "q1"} and {@code "q2"} with values {@code ["a","b"]} and
* {@code ["a","b","c"]} respectively.
* @param matrixVariables the unparsed matrix variables string
- * @return a map with matrix variable names and values, never {@code null}
+ * @return a map with matrix variable names and values (never {@code null})
* @since 3.2
*/
public static MultiValueMap