BindToExistingBeanStep: fix assertion

GitOrigin-RevId: 420f3bbf9113294b5e9bb570025fb555a535b350
This commit is contained in:
Tagir Valeev
2020-05-05 04:30:49 +00:00
committed by intellij-monorepo-bot
parent 4a70521e1d
commit cd2d0306b8
@@ -198,7 +198,7 @@ final class BindToExistingBeanStep extends StepAdapter{
outer: for(int i = rProps.length - 1; i >= 0; i--){
final String propName = rProps[i];
if(ArrayUtil.find(wProps, propName) != -1){
LOG.assertTrue(!rwProps.contains(propName));
LOG.assertTrue(rwProps.stream().noneMatch(bp -> bp.myName.equals(propName)));
final PsiMethod getter = PropertyUtilBase.findPropertyGetter(myData.myBeanClass, propName, false, true);
if (getter == null) {
// possible if the getter is static: getReadableProperties() does not filter out static methods, and