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

@@ -230,7 +230,7 @@ final class PersistenceUnitReader {
Element excludeUnlistedClasses = DomUtils.getChildElementByTagName(persistenceUnit, EXCLUDE_UNLISTED_CLASSES);
if (excludeUnlistedClasses != null) {
String excludeText = DomUtils.getTextValue(excludeUnlistedClasses);
unitInfo.setExcludeUnlistedClasses(!StringUtils.hasText(excludeText) || Boolean.valueOf(excludeText));
unitInfo.setExcludeUnlistedClasses(!StringUtils.hasText(excludeText) || Boolean.parseBoolean(excludeText));
}
// set JPA 2.0 shared cache mode