@ -199,7 +199,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -199,7 +199,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -779,7 +779,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -779,7 +779,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
*/
publicvoidaddPreferredLocale(Localelocale){
Assert.notNull(locale,"Locale must not be null");
this.locales.add(0,locale);
this.locales.addFirst(locale);
updateAcceptLanguageHeader();
}
@ -817,7 +817,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -817,7 +817,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
*/
@Override
publicLocalegetLocale(){
returnthis.locales.get(0);
returnthis.locales.getFirst();
}
/**
@ -1015,6 +1015,9 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -1015,6 +1015,9 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -199,7 +199,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -199,7 +199,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -403,12 +403,11 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -403,12 +403,11 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -780,7 +779,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -780,7 +779,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
*/
publicvoidaddPreferredLocale(Localelocale){
Assert.notNull(locale,"Locale must not be null");
this.locales.add(0,locale);
this.locales.addFirst(locale);
updateAcceptLanguageHeader();
}
@ -818,7 +817,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -818,7 +817,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
*/
@Override
publicLocalegetLocale(){
returnthis.locales.get(0);
returnthis.locales.getFirst();
}
/**
@ -1016,6 +1015,9 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -1016,6 +1015,9 @@ public class MockHttpServletRequest implements HttpServletRequest {