Polish JavaBeanBinder

Closes gh-33762
pull/33774/head
Moritz Halbritter 2 years ago
parent 3b2e5e5292
commit d6f682da7e

@ -304,15 +304,11 @@ class JavaBeanBinder implements DataObjectBinder {
}
void addGetter(Method getter) {
if (this.getter == null || isBetterGetter(getter)) {
if (this.getter == null || this.getter.getName().startsWith("is")) {
this.getter = getter;
}
}
private boolean isBetterGetter(Method getter) {
return this.getter != null && this.getter.getName().startsWith("is");
}
void addSetter(Method setter) {
if (this.setter == null || isBetterSetter(setter)) {
this.setter = setter;

Loading…
Cancel
Save