HHH-15189 Print deprecation warning for lock timeout only when a value is passed

This commit is contained in:
Christian Beikov 2022-04-07 23:43:24 +02:00
parent 25f282eb6e
commit dc42ec38ed
1 changed files with 1 additions and 1 deletions

View File

@ -41,8 +41,8 @@ public class LegacySpecHelper {
final Object javaeeValue = valueAccess.apply( javaeeName );
if ( javaeeValue != null ) {
DEPRECATION_LOGGER.deprecatedSetting( javaeeName, specName );
if ( valueChecker == null || valueChecker.apply( javaeeValue ) ) {
DEPRECATION_LOGGER.deprecatedSetting( javaeeName, specName );
return javaeeValue;
}
}