Commit f52ab004 authored by Johnny Lim's avatar Johnny Lim Committed by Phillip Webb

Handle all getters first in JavaBeanBinder

Update `JavaBeanBinder.addProperties` to add both `get` and `is` methods
before `set`.

See gh-17005
parent 0b5bb6eb
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment