diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/LocaleResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/LocaleResolver.java index 3d8258841d..49115b55dc 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/LocaleResolver.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/LocaleResolver.java @@ -17,6 +17,7 @@ package org.springframework.web.servlet; import java.util.Locale; + import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -50,22 +51,22 @@ import javax.servlet.http.HttpServletResponse; */ public interface LocaleResolver { - /** - * Resolve the current locale via the given request. - * Can return a default locale as fallback in any case. - * @param request the request to resolve the locale for - * @return the current locale (never {@code null}) - */ + /** + * Resolve the current locale via the given request. Can return a default locale as + * fallback in any case. + * @param request the request to resolve the locale for + * @return the current locale (never {@code null}) + */ Locale resolveLocale(HttpServletRequest request); - /** - * Set the current locale to the given one. - * @param request the request to be used for locale modification - * @param response the response to be used for locale modification - * @param locale the new locale, or {@code null} to clear the locale - * @throws UnsupportedOperationException if the LocaleResolver implementation - * does not support dynamic changing of the locale - */ + /** + * Set the current locale to the given one. + * @param request the request to be used for locale modification + * @param response the response to be used for locale modification + * @param locale the new locale, or {@code null} to clear the locale + * @throws UnsupportedOperationException if the LocaleResolver implementation does not + * support dynamic changing of the locale + */ void setLocale(HttpServletRequest request, HttpServletResponse response, Locale locale); }