Skip to content

Commit 83df467

Browse files
ttddyyjhoeller
authored andcommitted
Remove @nullable from CookieLocaleResolver#determineDefaultLocale()
By definition, this method should not return `null`.
1 parent 4d446f9 commit 83df467

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/CookieLocaleResolver.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ protected String toLocaleValue(Locale locale) {
335335
* @see #setDefaultLocale
336336
* @see javax.servlet.http.HttpServletRequest#getLocale()
337337
*/
338-
@Nullable
339338
protected Locale determineDefaultLocale(HttpServletRequest request) {
340339
Locale defaultLocale = getDefaultLocale();
341340
if (defaultLocale == null) {

0 commit comments

Comments
 (0)