Skip to content

Commit 73d2852

Browse files
committed
Update Validator.java
1 parent 4017351 commit 73d2852

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http-api/src/main/java/io/avaje/http/api/Validator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ public interface Validator {
1818
*/
1919
void validate(Object bean, String acceptLanguage, Class<?>... groups) throws ValidationException;
2020

21-
default Locale resolveLocale(String acceptLanguage, Collection<Locale> locales) {
21+
default Locale resolveLocale(String acceptLanguage, Collection<Locale> acceptLocales) {
2222
if (acceptLanguage == null) {
2323
return null;
2424
}
2525
final List<LanguageRange> list = LanguageRange.parse(acceptLanguage);
26-
return Locale.lookup(list, locales);
26+
return Locale.lookup(list, acceptLocales);
2727
}
2828
}

0 commit comments

Comments
 (0)