Merge pull request #17005 from izeye

* pr/17005:
  Handle all getters first in JavaBeanBinder

Closes gh-17005
pull/17068/head
Phillip Webb 6 years ago
commit e05799d963

@ -133,9 +133,9 @@ class JavaBeanBinder implements BeanBinder {
}
for (Method method : declaredMethods) {
addMethodIfPossible(method, "get", 0, BeanProperty::addGetter);
addMethodIfPossible(method, "is", 0, BeanProperty::addGetter);
}
for (Method method : declaredMethods) {
addMethodIfPossible(method, "is", 0, BeanProperty::addGetter);
addMethodIfPossible(method, "set", 1, BeanProperty::addSetter);
}
for (Field field : declaredFields) {

Loading…
Cancel
Save