Final fields, params and variables

This commit is contained in:
yueh 2015-12-24 02:09:38 +01:00
parent 99215e1701
commit a6ee559723
21 changed files with 89 additions and 89 deletions

View file

@ -694,13 +694,13 @@ public abstract class AEBaseBlock extends Block implements IAEFeature
return isFullSize; return isFullSize;
} }
public boolean setFullSize( boolean isFullSize ) public boolean setFullSize( final boolean isFullSize )
{ {
this.isFullSize = isFullSize; this.isFullSize = isFullSize;
return isFullSize; return isFullSize;
} }
public boolean setOpaque( boolean isOpaque ) public boolean setOpaque( final boolean isOpaque )
{ {
this.isOpaque = isOpaque; this.isOpaque = isOpaque;
return isOpaque; return isOpaque;
@ -716,12 +716,12 @@ public abstract class AEBaseBlock extends Block implements IAEFeature
return isInventory; return isInventory;
} }
public void setInventory( boolean isInventory ) public void setInventory( final boolean isInventory )
{ {
this.isInventory = isInventory; this.isInventory = isInventory;
} }
public void setHasSubtypes( boolean hasSubtypes ) public void setHasSubtypes( final boolean hasSubtypes )
{ {
this.hasSubtypes = hasSubtypes; this.hasSubtypes = hasSubtypes;
} }

View file

@ -104,9 +104,9 @@ public class ClientHelper extends ServerHelper
private static final ModelGenerator BLOCK_RENDERER = new ModelGenerator(); private static final ModelGenerator BLOCK_RENDERER = new ModelGenerator();
private final ModelResourceLocation partRenderer = new ModelResourceLocation( new ResourceLocation( AppEng.MOD_ID, "DynamicPartRenderer" ), "inventory" ); private final ModelResourceLocation partRenderer = new ModelResourceLocation( new ResourceLocation( AppEng.MOD_ID, "DynamicPartRenderer" ), "inventory" );
private Map<Object, List<IconReg>> iconRegistrations = new HashMap<>(); private final Map<Object, List<IconReg>> iconRegistrations = new HashMap<>();
private List<IconReg> iconTmp = new ArrayList<>(); private final List<IconReg> iconTmp = new ArrayList<>();
private List<ResourceLocation> extraIcons = new ArrayList<>(); private final List<ResourceLocation> extraIcons = new ArrayList<>();
@Override @Override
public void configureIcon( final Object item, final String name ) public void configureIcon( final Object item, final String name )

View file

@ -34,7 +34,7 @@ import appeng.client.texture.MissingIcon;
public class SmartModel implements IBakedModel, ISmartBlockModel, ISmartItemModel public class SmartModel implements IBakedModel, ISmartBlockModel, ISmartItemModel
{ {
private BlockRenderInfo aeRenderer; private final BlockRenderInfo aeRenderer;
private class DefState implements IModelState private class DefState implements IModelState
{ {

View file

@ -93,7 +93,7 @@ public abstract class AEBaseGui extends GuiContainer
private Stopwatch dbl_clickTimer = Stopwatch.createStarted(); private Stopwatch dbl_clickTimer = Stopwatch.createStarted();
private ItemStack dbl_whichItem; private ItemStack dbl_whichItem;
private Slot bl_clicked; private Slot bl_clicked;
private boolean useNEI = false; private final boolean useNEI = false;
private boolean subGui; private boolean subGui;
public AEBaseGui( final Container container ) public AEBaseGui( final Container container )

View file

@ -187,7 +187,7 @@ public class BusRenderer implements IItemRenderer
return this.renderer; return this.renderer;
} }
public void setRenderer( ModelGenerator renderer ) public void setRenderer( final ModelGenerator renderer )
{ {
this.renderer = renderer; this.renderer = renderer;
} }

View file

@ -10,13 +10,13 @@ import appeng.client.texture.IAESprite;
public class IconUnwrapper extends TextureAtlasSprite public class IconUnwrapper extends TextureAtlasSprite
{ {
private int width; private final int width;
private int height; private final int height;
private float max_u; private final float max_u;
private float min_u; private final float min_u;
private float min_v; private final float min_v;
private float max_v; private final float max_v;
protected IconUnwrapper( protected IconUnwrapper(
final IAESprite src ) final IAESprite src )

View file

@ -41,8 +41,8 @@ public class ModelGenerator
private static final class CachedModel implements IBakedModel private static final class CachedModel implements IBakedModel
{ {
private List<BakedQuad>[] faces = new List[6]; private final List<BakedQuad>[] faces = new List[6];
private List<BakedQuad> general; private final List<BakedQuad> general;
public CachedModel() public CachedModel()
{ {
@ -115,7 +115,7 @@ public class ModelGenerator
private IBlockAccess blockAccess; private IBlockAccess blockAccess;
private CachedModel generatedModel = new CachedModel(); private final CachedModel generatedModel = new CachedModel();
// used to create faces... // used to create faces...
private final FaceBakery faceBakery = new FaceBakery(); private final FaceBakery faceBakery = new FaceBakery();
@ -135,11 +135,11 @@ public class ModelGenerator
}; };
private EnumSet<EnumFacing> renderFaces = EnumSet.allOf( EnumFacing.class ); private EnumSet<EnumFacing> renderFaces = EnumSet.allOf( EnumFacing.class );
private boolean flipTexture = false; private boolean flipTexture = false;
private List<SMFace> faces = new ArrayList(); private final List<SMFace> faces = new ArrayList();
private int point = 0; private int point = 0;
private int brightness = -1; private int brightness = -1;
private float[][] points = new float[4][]; private final float[][] points = new float[4][];
private EnumFacing currentFace = EnumFacing.UP; private EnumFacing currentFace = EnumFacing.UP;
private int color = -1; private int color = -1;
@ -636,7 +636,7 @@ public class ModelGenerator
return blockAccess; return blockAccess;
} }
public void setBlockAccess( IBlockAccess blockAccess ) public void setBlockAccess( final IBlockAccess blockAccess )
{ {
this.blockAccess = blockAccess; this.blockAccess = blockAccess;
} }
@ -646,7 +646,7 @@ public class ModelGenerator
return renderAllFaces; return renderAllFaces;
} }
public void setRenderAllFaces( boolean renderAllFaces ) public void setRenderAllFaces( final boolean renderAllFaces )
{ {
this.renderAllFaces = renderAllFaces; this.renderAllFaces = renderAllFaces;
} }
@ -656,7 +656,7 @@ public class ModelGenerator
return uvRotateBottom; return uvRotateBottom;
} }
public int setUvRotateBottom( int uvRotateBottom ) public int setUvRotateBottom( final int uvRotateBottom )
{ {
this.uvRotateBottom = uvRotateBottom; this.uvRotateBottom = uvRotateBottom;
return uvRotateBottom; return uvRotateBottom;
@ -667,7 +667,7 @@ public class ModelGenerator
return uvRotateEast; return uvRotateEast;
} }
public int setUvRotateEast( int uvRotateEast ) public int setUvRotateEast( final int uvRotateEast )
{ {
this.uvRotateEast = uvRotateEast; this.uvRotateEast = uvRotateEast;
return uvRotateEast; return uvRotateEast;
@ -678,7 +678,7 @@ public class ModelGenerator
return uvRotateNorth; return uvRotateNorth;
} }
public int setUvRotateNorth( int uvRotateNorth ) public int setUvRotateNorth( final int uvRotateNorth )
{ {
this.uvRotateNorth = uvRotateNorth; this.uvRotateNorth = uvRotateNorth;
return uvRotateNorth; return uvRotateNorth;
@ -689,7 +689,7 @@ public class ModelGenerator
return uvRotateSouth; return uvRotateSouth;
} }
public int setUvRotateSouth( int uvRotateSouth ) public int setUvRotateSouth( final int uvRotateSouth )
{ {
this.uvRotateSouth = uvRotateSouth; this.uvRotateSouth = uvRotateSouth;
return uvRotateSouth; return uvRotateSouth;
@ -700,7 +700,7 @@ public class ModelGenerator
return uvRotateTop; return uvRotateTop;
} }
public int setUvRotateTop( int uvRotateTop ) public int setUvRotateTop( final int uvRotateTop )
{ {
this.uvRotateTop = uvRotateTop; this.uvRotateTop = uvRotateTop;
return uvRotateTop; return uvRotateTop;
@ -711,7 +711,7 @@ public class ModelGenerator
return uvRotateWest; return uvRotateWest;
} }
public int setUvRotateWest( int uvRotateWest ) public int setUvRotateWest( final int uvRotateWest )
{ {
this.uvRotateWest = uvRotateWest; this.uvRotateWest = uvRotateWest;
return uvRotateWest; return uvRotateWest;
@ -722,7 +722,7 @@ public class ModelGenerator
return renderMinX; return renderMinX;
} }
public void setRenderMinX( double renderMinX ) public void setRenderMinX( final double renderMinX )
{ {
this.renderMinX = renderMinX; this.renderMinX = renderMinX;
} }
@ -732,7 +732,7 @@ public class ModelGenerator
return renderMinY; return renderMinY;
} }
public void setRenderMinY( double renderMinY ) public void setRenderMinY( final double renderMinY )
{ {
this.renderMinY = renderMinY; this.renderMinY = renderMinY;
} }
@ -742,7 +742,7 @@ public class ModelGenerator
return renderMinZ; return renderMinZ;
} }
public void setRenderMinZ( double renderMinZ ) public void setRenderMinZ( final double renderMinZ )
{ {
this.renderMinZ = renderMinZ; this.renderMinZ = renderMinZ;
} }
@ -752,7 +752,7 @@ public class ModelGenerator
return renderMaxX; return renderMaxX;
} }
public void setRenderMaxX( double renderMaxX ) public void setRenderMaxX( final double renderMaxX )
{ {
this.renderMaxX = renderMaxX; this.renderMaxX = renderMaxX;
} }
@ -762,7 +762,7 @@ public class ModelGenerator
return renderMaxY; return renderMaxY;
} }
public void setRenderMaxY( double renderMaxY ) public void setRenderMaxY( final double renderMaxY )
{ {
this.renderMaxY = renderMaxY; this.renderMaxY = renderMaxY;
} }
@ -772,7 +772,7 @@ public class ModelGenerator
return renderMaxZ; return renderMaxZ;
} }
public void setRenderMaxZ( double renderMaxZ ) public void setRenderMaxZ( final double renderMaxZ )
{ {
this.renderMaxZ = renderMaxZ; this.renderMaxZ = renderMaxZ;
} }
@ -782,7 +782,7 @@ public class ModelGenerator
return flipTexture; return flipTexture;
} }
public void setFlipTexture( boolean flipTexture ) public void setFlipTexture( final boolean flipTexture )
{ {
this.flipTexture = flipTexture; this.flipTexture = flipTexture;
} }
@ -792,7 +792,7 @@ public class ModelGenerator
return renderFaces; return renderFaces;
} }
public void setRenderFaces( EnumSet<EnumFacing> renderFaces ) public void setRenderFaces( final EnumSet<EnumFacing> renderFaces )
{ {
this.renderFaces = renderFaces; this.renderFaces = renderFaces;
} }

View file

@ -42,7 +42,7 @@ public class RenderBlocksWorkaround extends ModelGenerator
// TODO Auto-generated method stub // TODO Auto-generated method stub
} }
public void setOpacity( float f ) public void setOpacity( final float f )
{ {
this.opacity = f; this.opacity = f;
} }
@ -52,7 +52,7 @@ public class RenderBlocksWorkaround extends ModelGenerator
return faces; return faces;
} }
public void setFaces( EnumSet<EnumFacing> faces ) public void setFaces( final EnumSet<EnumFacing> faces )
{ {
this.faces = faces; this.faces = faces;
} }

View file

@ -167,7 +167,7 @@ public class CraftingLinkNexus
return req; return req;
} }
public void setRequest( CraftingLink req ) public void setRequest( final CraftingLink req )
{ {
this.req = req; this.req = req;
} }

View file

@ -97,7 +97,7 @@ public class ToolEntropyManipulator extends AEBasePoweredItem implements IBlockT
private static class InWorldToolOperationIngredient private static class InWorldToolOperationIngredient
{ {
private final IBlockState state; private final IBlockState state;
private boolean blockOnly; private final boolean blockOnly;
public InWorldToolOperationIngredient( final IBlockState state ) public InWorldToolOperationIngredient( final IBlockState state )
{ {

View file

@ -38,14 +38,14 @@ public class InvLayerData
private final List<ISidedInventory> inventories; private final List<ISidedInventory> inventories;
private final List<InvSot> slots; private final List<InvSot> slots;
public InvLayerData( int[][] a, List<ISidedInventory> b, List<InvSot> c ) public InvLayerData( final int[][] a, final List<ISidedInventory> b, final List<InvSot> c )
{ {
this.sides = a; this.sides = a;
this.inventories = b; this.inventories = b;
this.slots = c; this.slots = c;
} }
public ItemStack decreaseStackSize( int slot, int amount ) public ItemStack decreaseStackSize( final int slot, final int amount )
{ {
if( this.isSlotValid( slot ) ) if( this.isSlotValid( slot ) )
{ {
@ -62,7 +62,7 @@ public class InvLayerData
* *
* @return true, if the slot exists. * @return true, if the slot exists.
*/ */
boolean isSlotValid( int slot ) boolean isSlotValid( final int slot )
{ {
return this.slots != null && slot >= 0 && slot < this.slots.size(); return this.slots != null && slot >= 0 && slot < this.slots.size();
} }
@ -77,7 +77,7 @@ public class InvLayerData
return this.slots.size(); return this.slots.size();
} }
public ItemStack getStackInSlot( int slot ) public ItemStack getStackInSlot( final int slot )
{ {
if( this.isSlotValid( slot ) ) if( this.isSlotValid( slot ) )
{ {
@ -87,7 +87,7 @@ public class InvLayerData
return null; return null;
} }
public boolean isItemValidForSlot( int slot, ItemStack itemstack ) public boolean isItemValidForSlot( final int slot, final ItemStack itemstack )
{ {
if( this.isSlotValid( slot ) ) if( this.isSlotValid( slot ) )
{ {
@ -97,7 +97,7 @@ public class InvLayerData
return false; return false;
} }
public void setInventorySlotContents( int slot, ItemStack itemstack ) public void setInventorySlotContents( final int slot, final ItemStack itemstack )
{ {
if( this.isSlotValid( slot ) ) if( this.isSlotValid( slot ) )
{ {
@ -105,7 +105,7 @@ public class InvLayerData
} }
} }
public boolean canExtractItem( int slot, ItemStack itemstack, EnumFacing side ) public boolean canExtractItem( final int slot, final ItemStack itemstack, final EnumFacing side )
{ {
if( this.isSlotValid( slot ) ) if( this.isSlotValid( slot ) )
{ {
@ -115,7 +115,7 @@ public class InvLayerData
return false; return false;
} }
public boolean canInsertItem( int slot, ItemStack itemstack, EnumFacing side ) public boolean canInsertItem( final int slot, final ItemStack itemstack, final EnumFacing side )
{ {
if( this.isSlotValid( slot ) ) if( this.isSlotValid( slot ) )
{ {
@ -129,14 +129,14 @@ public class InvLayerData
{ {
if( this.inventories != null ) if( this.inventories != null )
{ {
for( IInventory inv : this.inventories ) for( final IInventory inv : this.inventories )
{ {
inv.markDirty(); inv.markDirty();
} }
} }
} }
public int[] getSlotsForFace( EnumFacing side ) public int[] getSlotsForFace( final EnumFacing side )
{ {
if( this.sides == null || side == null ) if( this.sides == null || side == null )
{ {

View file

@ -30,13 +30,13 @@ public class InvSot
private final ISidedInventory partInv; private final ISidedInventory partInv;
private final int index; private final int index;
public InvSot( ISidedInventory part, int slot ) public InvSot( final ISidedInventory part, final int slot )
{ {
this.partInv = part; this.partInv = part;
this.index = slot; this.index = slot;
} }
public ItemStack decreaseStackSize( int j ) public ItemStack decreaseStackSize( final int j )
{ {
return this.partInv.decrStackSize( this.index, j ); return this.partInv.decrStackSize( this.index, j );
} }
@ -46,22 +46,22 @@ public class InvSot
return this.partInv.getStackInSlot( this.index ); return this.partInv.getStackInSlot( this.index );
} }
public boolean isItemValidForSlot( ItemStack itemstack ) public boolean isItemValidForSlot( final ItemStack itemstack )
{ {
return this.partInv.isItemValidForSlot( this.index, itemstack ); return this.partInv.isItemValidForSlot( this.index, itemstack );
} }
public void setInventorySlotContents( ItemStack itemstack ) public void setInventorySlotContents( final ItemStack itemstack )
{ {
this.partInv.setInventorySlotContents( this.index, itemstack ); this.partInv.setInventorySlotContents( this.index, itemstack );
} }
public boolean canExtractItem( ItemStack itemstack, EnumFacing side ) public boolean canExtractItem( final ItemStack itemstack, final EnumFacing side )
{ {
return this.partInv.canExtractItem( this.index, itemstack, side ); return this.partInv.canExtractItem( this.index, itemstack, side );
} }
public boolean canInsertItem( ItemStack itemstack, EnumFacing side ) public boolean canInsertItem( final ItemStack itemstack, final EnumFacing side )
{ {
return this.partInv.canInsertItem( this.index, itemstack, side ); return this.partInv.canInsertItem( this.index, itemstack, side );
} }

View file

@ -68,12 +68,12 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
inventories = new ArrayList<ISidedInventory>(); inventories = new ArrayList<ISidedInventory>();
int slotCount = 0; int slotCount = 0;
for( AEPartLocation side : AEPartLocation.SIDE_LOCATIONS ) for( final AEPartLocation side : AEPartLocation.SIDE_LOCATIONS )
{ {
IPart bp = this.getPart( side ); final IPart bp = this.getPart( side );
if( bp instanceof ISidedInventory ) if( bp instanceof ISidedInventory )
{ {
ISidedInventory part = (ISidedInventory) bp; final ISidedInventory part = (ISidedInventory) bp;
slotCount += part.getSizeInventory(); slotCount += part.getSizeInventory();
inventories.add( part ); inventories.add( part );
} }
@ -90,13 +90,13 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
int offsetForLayer = 0; int offsetForLayer = 0;
int offsetForPart = 0; int offsetForPart = 0;
for( ISidedInventory sides : inventories ) for( final ISidedInventory sides : inventories )
{ {
offsetForPart = 0; offsetForPart = 0;
slotCount = sides.getSizeInventory(); slotCount = sides.getSizeInventory();
AEPartLocation currentSide = AEPartLocation.INTERNAL; AEPartLocation currentSide = AEPartLocation.INTERNAL;
for( AEPartLocation side : AEPartLocation.SIDE_LOCATIONS ) for( final AEPartLocation side : AEPartLocation.SIDE_LOCATIONS )
{ {
if( this.getPart( side ) == sides ) if( this.getPart( side ) == sides )
{ {
@ -105,7 +105,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
} }
int[] cSidesList = sideData[currentSide.ordinal()] = new int[slotCount]; final int[] cSidesList = sideData[currentSide.ordinal()] = new int[slotCount];
for( int cSlot = 0; cSlot < slotCount; cSlot++ ) for( int cSlot = 0; cSlot < slotCount; cSlot++ )
{ {
cSidesList[cSlot] = offsetForLayer; cSidesList[cSlot] = offsetForLayer;
@ -141,7 +141,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
@Override @Override
public ItemStack getStackInSlot( int slot ) public ItemStack getStackInSlot( final int slot )
{ {
if( this.invLayer == null ) if( this.invLayer == null )
{ {
@ -152,7 +152,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
@Override @Override
public ItemStack decrStackSize( int slot, int amount ) public ItemStack decrStackSize( final int slot, final int amount )
{ {
if( this.invLayer == null ) if( this.invLayer == null )
{ {
@ -163,13 +163,13 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
@Override @Override
public ItemStack getStackInSlotOnClosing( int slot ) public ItemStack getStackInSlotOnClosing( final int slot )
{ {
return null; return null;
} }
@Override @Override
public void setInventorySlotContents( int slot, ItemStack itemstack ) public void setInventorySlotContents( final int slot, final ItemStack itemstack )
{ {
if( this.invLayer == null ) if( this.invLayer == null )
{ {
@ -198,23 +198,23 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
@Override @Override
public boolean isUseableByPlayer( EntityPlayer entityplayer ) public boolean isUseableByPlayer( final EntityPlayer entityplayer )
{ {
return false; return false;
} }
@Override @Override
public void openInventory( EntityPlayer player ) public void openInventory( final EntityPlayer player )
{ {
} }
@Override @Override
public void closeInventory( EntityPlayer player ) public void closeInventory( final EntityPlayer player )
{ {
} }
@Override @Override
public boolean isItemValidForSlot( int slot, ItemStack itemstack ) public boolean isItemValidForSlot( final int slot, final ItemStack itemstack )
{ {
if( this.invLayer == null ) if( this.invLayer == null )
{ {
@ -236,7 +236,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
@Override @Override
public int[] getSlotsForFace( EnumFacing side ) public int[] getSlotsForFace( final EnumFacing side )
{ {
if( this.invLayer != null ) if( this.invLayer != null )
{ {
@ -247,7 +247,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
@Override @Override
public boolean canInsertItem( int slot, ItemStack itemstack, EnumFacing side ) public boolean canInsertItem( final int slot, final ItemStack itemstack, final EnumFacing side )
{ {
if( this.invLayer == null ) if( this.invLayer == null )
{ {
@ -258,7 +258,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
} }
@Override @Override
public boolean canExtractItem( int slot, ItemStack itemstack, EnumFacing side ) public boolean canExtractItem( final int slot, final ItemStack itemstack, final EnumFacing side )
{ {
if( this.invLayer == null ) if( this.invLayer == null )
{ {
@ -270,15 +270,15 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
@Override @Override
public int getField( public int getField(
int id ) final int id )
{ {
return 0; return 0;
} }
@Override @Override
public void setField( public void setField(
int id, final int id,
int value ) final int value )
{ {
} }

View file

@ -32,9 +32,9 @@ public class LayerITileStorageMonitorable extends LayerBase implements ITileStor
{ {
@Override @Override
public IStorageMonitorable getMonitorable( EnumFacing side, BaseActionSource src ) public IStorageMonitorable getMonitorable( final EnumFacing side, final BaseActionSource src )
{ {
IPart part = this.getPart( side ); final IPart part = this.getPart( side );
if( part instanceof ITileStorageMonitorable ) if( part instanceof ITileStorageMonitorable )
{ {
return ( (ITileStorageMonitorable) part ).getMonitorable( side, src ); return ( (ITileStorageMonitorable) part ).getMonitorable( side, src );

View file

@ -1060,12 +1060,12 @@ public class PartCable extends AEBasePart implements IPartCable
rh.renderFace( pos, blk.getRendererInstance().getTexture( AEPartLocation.UP ), EnumFacing.UP, renderer ); rh.renderFace( pos, blk.getRendererInstance().getTexture( AEPartLocation.UP ), EnumFacing.UP, renderer );
} }
int getChannelsOnSide( int i ) int getChannelsOnSide( final int i )
{ {
return this.channelsOnSide[i]; return this.channelsOnSide[i];
} }
void setChannelsOnSide( int i, int channels ) void setChannelsOnSide( final int i, final int channels )
{ {
this.channelsOnSide[i] = channels; this.channelsOnSide[i] = channels;
} }

View file

@ -177,7 +177,7 @@ public class PartPatternTerminal extends AbstractPartTerminal
return this.substitute; return this.substitute;
} }
public void setSubstitution( boolean canSubstitute ) public void setSubstitution( final boolean canSubstitute )
{ {
this.substitute = canSubstitute; this.substitute = canSubstitute;
} }

View file

@ -98,7 +98,7 @@ public final class VersionChecker implements Runnable
this.processInterval( nowInMs, lastAfterInterval ); this.processInterval( nowInMs, lastAfterInterval );
} }
catch( Exception exception ) catch( final Exception exception )
{ {
// Log any unhandled exception to prevent the JVM from reporting them as unhandled. // Log any unhandled exception to prevent the JVM from reporting them as unhandled.
AELog.error( exception ); AELog.error( exception );

View file

@ -29,7 +29,7 @@ public class VersionCheckerException extends Exception
{ {
private static final long serialVersionUID = 4582501864800542884L; private static final long serialVersionUID = 4582501864800542884L;
public VersionCheckerException( @Nonnull String string ) public VersionCheckerException( @Nonnull final String string )
{ {
super( string ); super( string );
} }

View file

@ -77,11 +77,11 @@ public final class ReleaseFetcher
{ {
AELog.error( e ); AELog.error( e );
} }
catch( MalformedURLException e ) catch( final MalformedURLException e )
{ {
AELog.error( e ); AELog.error( e );
} }
catch( IOException e ) catch( final IOException e )
{ {
AELog.error( e ); AELog.error( e );
} }

View file

@ -66,7 +66,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
/** /**
* Immibis MB Support * Immibis MB Support
*/ */
private boolean ImmibisMicroblocks_TransformableTileEntityMarker = true; private final boolean ImmibisMicroblocks_TransformableTileEntityMarker = true;
private int oldLV = -1; // on re-calculate light when it changes private int oldLV = -1; // on re-calculate light when it changes
@TileEvent( TileEventType.WORLD_NBT_READ ) @TileEvent( TileEventType.WORLD_NBT_READ )

View file

@ -47,8 +47,8 @@ import appeng.util.Platform;
public final class AEFluidStack extends AEStack<IAEFluidStack> implements IAEFluidStack, Comparable<AEFluidStack> public final class AEFluidStack extends AEStack<IAEFluidStack> implements IAEFluidStack, Comparable<AEFluidStack>
{ {
private int myHash; private final int myHash;
private Fluid fluid; private final Fluid fluid;
private IAETagCompound tagCompound; private IAETagCompound tagCompound;
private AEFluidStack( final AEFluidStack is ) private AEFluidStack( final AEFluidStack is )