HHH-8211 FindBugs: Redundant null check removed

This commit is contained in:
Alex Snaps 2013-05-08 16:23:40 -04:00 committed by Steve Ebersole
parent ab47eae5b9
commit f841c2ab3b
1 changed files with 0 additions and 3 deletions

View File

@ -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 ) {