Removed multi catches (They are only in Java 7+)

This commit is contained in:
Adubbz 2014-06-09 12:46:13 +10:00
parent 23ae45a386
commit a107bb4d17
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ public class BOPBiome<T extends BOPBiomeDecorator> extends BiomeGenBase
{ {
this.theBiomeDecorator = clazz.newInstance(); this.theBiomeDecorator = clazz.newInstance();
} }
catch (InstantiationException | IllegalAccessException e) catch (Exception e)
{ {
throw new RuntimeException(); throw new RuntimeException();
} }

View File

@ -26,7 +26,7 @@ public class BOPBiomeDecorator<T extends BiomeFeatures> extends BiomeDecorator
{ {
this.bopFeatures = biomeFeaturesClass.newInstance(); this.bopFeatures = biomeFeaturesClass.newInstance();
} }
catch (InstantiationException | IllegalAccessException e) catch (Exception e)
{ {
throw new RuntimeException(); throw new RuntimeException();
} }

View File

@ -43,7 +43,7 @@ public class BiomeFeatures
{ {
return this.getClass().getField(featureName).get(this); return this.getClass().getField(featureName).get(this);
} }
catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) catch (Exception e)
{ {
throw new NoSuchFeatureException(featureName); throw new NoSuchFeatureException(featureName);
} }