Simplify loadProvider method

This commit is contained in:
vemacs 2015-06-17 11:09:13 -04:00
parent dce381fb28
commit e95ca8444e

View File

@ -35,10 +35,8 @@ public class SpawnerProviderFactory {
}
private SpawnerProvider loadProvider(Class<? extends SpawnerProvider> providerClass) {
SpawnerProvider provider;
try {
provider = providerClass.newInstance();
return provider;
return providerClass.newInstance();
} catch (Throwable ignored) {
return null;
}