Merge branch '2.1.x'

Closes gh-17006
This commit is contained in:
Andy Wilkinson 2019-05-29 14:19:57 +01:00
commit e481eccd57
1 changed files with 2 additions and 2 deletions

View File

@ -513,6 +513,7 @@ public class JavaBeanBinderTests {
assertThat(bean.getBooleans().get("b").getValue()).isEqualTo(true);
}
@Test
public void bindToClassWithOverloadedSetterShouldUseSetterThatMatchesField() {
// gh-16206
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
@ -524,9 +525,8 @@ public class JavaBeanBinderTests {
}
@Test
public void beanProperiesPreferMatchingType() {
public void beanPropertiesPreferMatchingType() {
// gh-16206
ResolvableType type = ResolvableType.forClass(PropertyWithOverloadedSetter.class);
Bean<PropertyWithOverloadedSetter> bean = new Bean<PropertyWithOverloadedSetter>(
type, type.resolve()) {