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

View File

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