Merge pull request #222 from thatsIch/ignored

Temporary set of catch to ignored if they are ignored
This commit is contained in:
Chris 2014-10-01 20:25:52 -07:00
commit 7ef413ab00
35 changed files with 76 additions and 76 deletions

View file

@ -232,7 +232,7 @@ public class BlockCableBus extends AEBaseBlock implements IRedNetConnection
{
return cb( world, x, y, z ).recolourBlock( side, AEColor.values()[colour], who );
}
catch (Throwable t)
catch (Throwable ignored)
{
}
return false;

View file

@ -123,7 +123,7 @@ public class GuiCellWorkbench extends GuiUpgradeable
else
super.actionPerformed( btn );
}
catch (IOException err)
catch (IOException ignored)
{
}
}

View file

@ -195,7 +195,7 @@ public class GuiInterfaceTerminal extends AEBaseGui
current.inv.setInventorySlotContents( x, ItemStack.loadItemStackFromNBT( invData.getCompoundTag( which ) ) );
}
}
catch (NumberFormatException ex)
catch (NumberFormatException ignored)
{
}
}

View file

@ -68,7 +68,7 @@ public class RenderBlockCraftingCPU extends BaseBlockRender
{
ct.lightCache = i.useSimplifiedRendering( x, y, z, null, ct.lightCache );
}
catch (Throwable t)
catch (Throwable ignored)
{
}

View file

@ -340,7 +340,7 @@ public class ApiPart implements IPartHelper
else
AELog.info( "Layer " + layer + " not registered, " + layerInterface + " already has a layer." );
}
catch (Throwable t)
catch (Throwable ignored)
{
}

View file

@ -98,10 +98,10 @@ public class AppEngPacketHandlerBase
{
x = pc.getConstructor( ByteBuf.class );
}
catch (NoSuchMethodException e)
catch (NoSuchMethodException ignored)
{
}
catch (SecurityException e)
catch (SecurityException ignored)
{
}

View file

@ -42,7 +42,7 @@ public class PacketLightning extends AppEngPacket
Minecraft.getMinecraft().effectRenderer.addEffect( fx );
}
}
catch (Exception err)
catch (Exception ignored)
{
}
}

View file

@ -53,7 +53,7 @@ public class PacketMatterCannon extends AppEngPacket
Minecraft.getMinecraft().effectRenderer.addEffect( fx );
}
}
catch (Exception err)
catch (Exception ignored)
{
}
}

View file

@ -290,7 +290,7 @@ public class CraftingJob implements Runnable, ICraftingJob
{
monitor.wait();
}
catch (InterruptedException e)
catch (InterruptedException ignored)
{
}
}

View file

@ -152,7 +152,7 @@ final public class EntityTinyTNTPrimed extends EntityTNTPrimed implements IEntit
{
CommonHelper.proxy.sendToAllNearExcept( null, posX, posY, posZ, 64, this.worldObj, new PacketMockExplosion( posX, posY, posZ ) );
}
catch (IOException e1)
catch (IOException ignored)
{
}
}

View file

@ -180,7 +180,7 @@ public class FacadePart implements IFacadePart, IBoxProvider
{
color = ib.getColorFromItemStack( randomItem, 0 );
}
catch (Throwable error)
catch (Throwable ignored)
{
}
@ -484,7 +484,7 @@ public class FacadePart implements IFacadePart, IBoxProvider
}
}
}
catch (Throwable t)
catch (Throwable ignored)
{
}

View file

@ -71,7 +71,7 @@ public class BC extends BaseModule implements IBC
if ( ((TileGenericPipe) te).hasPlug( dir.getOpposite() ) )
return false;
}
catch (Exception err)
catch (Exception ignored)
{
}
@ -285,7 +285,7 @@ public class BC extends BaseModule implements IBC
ItemStack fs = ItemFacade.getFacade( blk, meta );
return new FacadePart( fs, side );
}
catch (Throwable t)
catch (Throwable ignored)
{
}
@ -295,7 +295,7 @@ public class BC extends BaseModule implements IBC
ItemStack fs = ItemFacade.getStack( blk, meta );
return new FacadePart( fs, side );
}
catch (Throwable t)
catch (Throwable ignored)
{
}
@ -322,7 +322,7 @@ public class BC extends BaseModule implements IBC
if ( blk[0] != null )
return new ItemStack( blk[0], 1, meta[0] );
}
catch (Throwable t)
catch (Throwable ignored)
{
}
@ -333,7 +333,7 @@ public class BC extends BaseModule implements IBC
if ( blk != null )
return new ItemStack( blk, 1, ItemFacade.getMetaData( facade ) );
}
catch (Throwable t)
catch (Throwable ignored)
{
}
@ -348,7 +348,7 @@ public class BC extends BaseModule implements IBC
{
return BuildCraftTransport.instance.pipeIconProvider.getIcon( PipeIconProvider.TYPE.PipeStructureCobblestone.ordinal() ); // Structure
}
catch (Throwable t)
catch (Throwable ignored)
{
}
return null;

View file

@ -48,7 +48,7 @@ public class AEGenericSchematicTile extends SchematicTile
tileNBT.setString( "orientation_forward", fdForward.name() );
tileNBT.setString( "orientation_up", fdUp.name() );
}
catch (Throwable t)
catch (Throwable ignored)
{
}

View file

@ -231,11 +231,11 @@ public class CraftGuide extends CraftGuideAPIObject implements IIntegrationModul
{
output[i] = toCG( ((IIngredient) output[i]).getItemStackSet() );
}
catch (RegistrationError e)
catch (RegistrationError ignored)
{
}
catch (MissingIngredientError e)
catch (MissingIngredientError ignored)
{
}
@ -266,11 +266,11 @@ public class CraftGuide extends CraftGuideAPIObject implements IIntegrationModul
{
output[i] = toCG( ((IIngredient) output[i]).getItemStackSet() );
}
catch (RegistrationError e)
catch (RegistrationError ignored)
{
}
catch (MissingIngredientError e)
catch (MissingIngredientError ignored)
{
}
@ -302,11 +302,11 @@ public class CraftGuide extends CraftGuideAPIObject implements IIntegrationModul
{
output[i] = toCG( ((IIngredient) output[i]).getItemStackSet() );
}
catch (RegistrationError e)
catch (RegistrationError ignored)
{
}
catch (MissingIngredientError e)
catch (MissingIngredientError ignored)
{
}

View file

@ -43,10 +43,10 @@ public class FZ implements IFZ, IIntegrationModule
return i;
}
catch (IllegalArgumentException e)
catch (IllegalArgumentException ignored)
{
}
catch (IllegalAccessException e)
catch (IllegalAccessException ignored)
{
}
return null;
@ -60,13 +60,13 @@ public class FZ implements IFZ, IIntegrationModule
if ( day_BarrelClass.isInstance( te ) )
return (Integer) day_getMaxSize.invoke( te );
}
catch (IllegalAccessException e)
catch (IllegalAccessException ignored)
{
}
catch (IllegalArgumentException e)
catch (IllegalArgumentException ignored)
{
}
catch (InvocationTargetException e)
catch (InvocationTargetException ignored)
{
}
return 0;
@ -80,13 +80,13 @@ public class FZ implements IFZ, IIntegrationModule
if ( day_BarrelClass.isInstance( te ) )
return (Integer) day_getItemCount.invoke( te );
}
catch (IllegalAccessException e)
catch (IllegalAccessException ignored)
{
}
catch (IllegalArgumentException e)
catch (IllegalArgumentException ignored)
{
}
catch (InvocationTargetException e)
catch (InvocationTargetException ignored)
{
}
return 0;
@ -100,10 +100,10 @@ public class FZ implements IFZ, IIntegrationModule
if ( day_BarrelClass.isInstance( te ) )
day_item.set( te, input == null ? null : input.copy() );
}
catch (IllegalArgumentException e)
catch (IllegalArgumentException ignored)
{
}
catch (IllegalAccessException e)
catch (IllegalAccessException ignored)
{
}
}
@ -118,13 +118,13 @@ public class FZ implements IFZ, IIntegrationModule
te.markDirty();
}
catch (IllegalAccessException e)
catch (IllegalAccessException ignored)
{
}
catch (IllegalArgumentException e)
catch (IllegalArgumentException ignored)
{
}
catch (InvocationTargetException e)
catch (InvocationTargetException ignored)
{
}
}

View file

@ -195,11 +195,11 @@ public class NEIAEShapedRecipeHandler extends TemplateRecipeHandler
stack.setMaxSize( 1 );
this.ingredients.add( stack );
}
catch (RegistrationError e)
catch (RegistrationError ignored)
{
}
catch (MissingIngredientError e)
catch (MissingIngredientError ignored)
{
}

View file

@ -196,11 +196,11 @@ public class NEIAEShapelessRecipeHandler extends TemplateRecipeHandler
stack.setMaxSize( 1 );
this.ingredients.add( stack );
}
catch (RegistrationError e)
catch (RegistrationError ignored)
{
}
catch (MissingIngredientError e)
catch (MissingIngredientError ignored)
{
}

View file

@ -39,10 +39,10 @@ public class NEICraftingHandler implements IOverlayHandler
List ingredients = recipe.getIngredientStacks( recipeIndex );
overlayRecipe( gui, ingredients, shift );
}
catch (Exception err)
catch (Exception ignored)
{
}
catch (Error err)
catch (Error ignored)
{
}
}
@ -101,10 +101,10 @@ public class NEICraftingHandler implements IOverlayHandler
NetworkHandler.instance.sendToServer( new PacketNEIRecipe( recipe ) );
}
}
catch (Exception err)
catch (Exception ignored)
{
}
catch (Error err)
catch (Error ignored)
{
}
}

View file

@ -86,7 +86,7 @@ public class Waila extends BaseModule implements IWailaDataProvider, IWailaFMPPr
{
nbt = accessor.getNBTData();
}
catch (NullPointerException npe)
catch (NullPointerException ignored)
{
}
@ -105,7 +105,7 @@ public class Waila extends BaseModule implements IWailaDataProvider, IWailaFMPPr
{
nbt = accessor.getNBTData();
}
catch (NullPointerException npe)
catch (NullPointerException ignored)
{
}

View file

@ -219,7 +219,7 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
return super.getItemStackDisplayName( is ) + " - " + in.getDisplayName();
}
}
catch (Throwable t)
catch (Throwable ignored)
{
}

View file

@ -40,7 +40,7 @@ public class ToolChargedStaff extends AEBasePoweredItem
ServerHelper.proxy.sendToAllNearExcept( null, dx, dy, dz, 32.0, target.worldObj, new PacketLightning( dx, dy, dz ) );
}
}
catch (IOException e)
catch (IOException ignored)
{
}

View file

@ -24,7 +24,7 @@ public class CreativeCellInventory implements IMEInventoryHandler<IAEItemStack>
{
return new CellInventoryHandler( new CreativeCellInventory( o ) );
}
catch (AppEngException e)
catch (AppEngException ignored)
{
}

View file

@ -128,7 +128,7 @@ public class PartP2PRFPower extends PartP2PTunnel<PartP2PRFPower> implements cof
QueueTunnelDrain( PowerUnits.RF, total );
}
catch (GridAccessException e)
catch (GridAccessException ignored)
{
}

View file

@ -158,19 +158,19 @@ public class RecipeHandler implements IRecipeHandler
}
}
catch (RecipeError e1)
catch (RecipeError ignored)
{
}
catch (MissedIngredientSet e1)
catch (MissedIngredientSet ignored)
{
}
catch (RegistrationError e1)
catch (RegistrationError ignored)
{
}
catch (MissingIngredientError e1)
catch (MissingIngredientError ignored)
{
}

View file

@ -199,7 +199,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
up = ForgeDirection.valueOf( data.getString( "orientation_up" ) );
}
}
catch (IllegalArgumentException iae)
catch (IllegalArgumentException ignored)
{
}

View file

@ -561,7 +561,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IAEAppEn
{
newState = gridProxy.isActive() && gridProxy.getEnergy().extractAEPower( 1, Actionable.SIMULATE, PowerMultiplier.CONFIG ) > 0.0001;
}
catch (GridAccessException e)
catch (GridAccessException ignored)
{
}

View file

@ -171,7 +171,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
target.setTag( "#" + x, c );
}
catch (Exception err)
catch (Exception ignored)
{
}
}

View file

@ -184,7 +184,7 @@ public class AppEngInternalInventory implements IInventory, Iterable<ItemStack>
target.setTag( "#" + x, c );
}
catch (Exception err)
catch (Exception ignored)
{
}
}

View file

@ -95,7 +95,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
tcb.copyFrom( this );
getWorldObj().setTileEntity( xCoord, yCoord, zCoord, tcb );
}
catch (Throwable t)
catch (Throwable ignored)
{
}

View file

@ -17,7 +17,7 @@ public class TileCableBusTESR extends TileCableBus
tcb.copyFrom( this );
getWorldObj().setTileEntity( xCoord, yCoord, zCoord, tcb );
}
catch (Throwable t)
catch (Throwable ignored)
{
}

View file

@ -119,7 +119,7 @@ public class TileEnergyCell extends AENetworkTile implements IAEPowerStorage
{
gridProxy.getGrid().postEvent( new MENetworkPowerStorage( this, PowerEventType.REQUEST_POWER ) );
}
catch (GridAccessException e)
catch (GridAccessException ignored)
{
}

View file

@ -475,7 +475,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
IStorageGrid gs = gridProxy.getStorage();
Platform.postChanges( gs, removed, added, mySrc );
}
catch (GridAccessException e)
catch (GridAccessException ignored)
{
}
@ -512,7 +512,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
inv.setInventorySlotContents( 0, returns.getItemStack() );
}
}
catch (ChestNoHandler t)
catch (ChestNoHandler ignored)
{
}
}
@ -541,7 +541,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
IAEItemStack returns = cell.injectItems( AEApi.instance().storage().createItemStack( inv.getStackInSlot( 0 ) ), Actionable.SIMULATE, mySrc );
return returns == null || returns.getStackSize() != itemstack.stackSize;
}
catch (ChestNoHandler t)
catch (ChestNoHandler ignored)
{
}
}
@ -638,7 +638,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
if ( handler instanceof ChestMonitorHandler )
return ch.getStatusForCell( cell, ((ChestMonitorHandler) handler).getInternalHandler() );
}
catch (ChestNoHandler e)
catch (ChestNoHandler ignored)
{
}
@ -648,7 +648,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
if ( handler instanceof ChestMonitorHandler )
return ch.getStatusForCell( cell, ((ChestMonitorHandler) handler).getInternalHandler() );
}
catch (ChestNoHandler e)
catch (ChestNoHandler ignored)
{
}
}
@ -675,7 +675,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
return resource.amount - (int) results.getStackSize();
}
catch (ChestNoHandler e)
catch (ChestNoHandler ignored)
{
}
}
@ -702,7 +702,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
IMEInventoryHandler h = getHandler( StorageChannel.FLUIDS );
return h.canAccept( AEFluidStack.create( new FluidStack( fluid, 1 ) ) );
}
catch (ChestNoHandler e)
catch (ChestNoHandler ignored)
{
}
return false;
@ -723,7 +723,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
if ( h.getChannel() == StorageChannel.FLUIDS )
return new FluidTankInfo[] { new FluidTankInfo( null, 1 ) }; // eh?
}
catch (ChestNoHandler e)
catch (ChestNoHandler ignored)
{
}
@ -766,7 +766,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
{
gridPowered = gridProxy.getEnergy().isNetworkPowered();
}
catch (GridAccessException e)
catch (GridAccessException ignored)
{
}
}

View file

@ -186,7 +186,7 @@ public class TileDrive extends AENetworkInvTile implements IChestOrDrive, IPrior
IStorageGrid gs = gridProxy.getStorage();
Platform.postChanges( gs, removed, added, mySrc );
}
catch (GridAccessException e)
catch (GridAccessException ignored)
{
}

View file

@ -19,7 +19,7 @@ public class MissingCoreMod extends CustomModLoadingErrorDisplayException
clz.getField( "mc" );
deobf = true;
}
catch (Throwable e)
catch (Throwable ignored)
{
}

View file

@ -757,7 +757,7 @@ public class Platform
// if this fails for some reason, try the other method.
return Loader.isModLoaded( modid );
}
catch (Throwable e)
catch (Throwable ignored)
{
}