HHH-15189 Print deprecation warning for lock timeout only when a value is passed
This commit is contained in:
parent
25f282eb6e
commit
dc42ec38ed
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue