HHH-8211 FindBugs: Redundant null check removed
This commit is contained in:
parent
ab47eae5b9
commit
f841c2ab3b
|
@ -147,9 +147,6 @@ public class ProviderMBeanRegistrationHelper {
|
|||
try {
|
||||
final Class factoryType = SessionFactoryRegistry.class;
|
||||
final Field instancesField = getField( factoryType, "sessionFactoryMap" );
|
||||
if ( instancesField == null ) {
|
||||
throw new RuntimeException( "Expected 'sessionFactoryMap' field on " + SessionFactoryRegistry.class.getName() );
|
||||
}
|
||||
instancesField.setAccessible( true );
|
||||
final Map map = (Map) instancesField.get( SessionFactoryRegistry.INSTANCE );
|
||||
if ( map == null ) {
|
||||
|
|
Loading…
Reference in New Issue