mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.7.x'
Closes gh-33771
This commit is contained in:
commit
47c1aa2724
@ -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…
Reference in New Issue
Block a user