Merge branch '2.7.x'
Closes gh-33771
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user