Avoid unnecessary boxing where primitives can be used

Closes gh-23267
This commit is contained in:
Сергей Цыпанов
2019-07-10 17:51:18 +03:00
committed by Sam Brannen
parent 2909de8829
commit 1728bf17fc
17 changed files with 24 additions and 24 deletions

View File

@@ -183,7 +183,7 @@ public class RequiredAnnotationBeanPostProcessor extends InstantiationAwareBeanP
return true;
}
Object value = beanDefinition.getAttribute(SKIP_REQUIRED_CHECK_ATTRIBUTE);
return (value != null && (Boolean.TRUE.equals(value) || Boolean.valueOf(value.toString())));
return (value != null && (Boolean.TRUE.equals(value) || Boolean.parseBoolean(value.toString())));
}
/**