final variables and parameters
This commit is contained in:
@@ -50,7 +50,7 @@ public class GridStorage implements IGridStorage
|
||||
* @param id ID of grid storage
|
||||
* @param gss grid storage search
|
||||
*/
|
||||
public GridStorage( long id, GridStorageSearch gss )
|
||||
public GridStorage( final long id, final GridStorageSearch gss )
|
||||
{
|
||||
this.myID = id;
|
||||
this.mySearchEntry = gss;
|
||||
@@ -64,7 +64,7 @@ public class GridStorage implements IGridStorage
|
||||
* @param id ID of grid storage
|
||||
* @param gss grid storage search
|
||||
*/
|
||||
public GridStorage( String input, long id, GridStorageSearch gss )
|
||||
public GridStorage( final String input, final long id, final GridStorageSearch gss )
|
||||
{
|
||||
this.myID = id;
|
||||
this.mySearchEntry = gss;
|
||||
@@ -72,10 +72,10 @@ public class GridStorage implements IGridStorage
|
||||
|
||||
try
|
||||
{
|
||||
byte[] byteData = javax.xml.bind.DatatypeConverter.parseBase64Binary( input );
|
||||
final byte[] byteData = javax.xml.bind.DatatypeConverter.parseBase64Binary( input );
|
||||
myTag = CompressedStreamTools.readCompressed( new ByteArrayInputStream( byteData ) );
|
||||
}
|
||||
catch( Throwable t )
|
||||
catch( final Throwable t )
|
||||
{
|
||||
myTag = new NBTTagCompound();
|
||||
}
|
||||
@@ -97,7 +97,7 @@ public class GridStorage implements IGridStorage
|
||||
{
|
||||
this.isDirty = false;
|
||||
|
||||
Grid currentGrid = (Grid) this.getGrid();
|
||||
final Grid currentGrid = (Grid) this.getGrid();
|
||||
if( currentGrid != null )
|
||||
{
|
||||
currentGrid.saveState();
|
||||
@@ -105,11 +105,11 @@ public class GridStorage implements IGridStorage
|
||||
|
||||
try
|
||||
{
|
||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||
final ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||
CompressedStreamTools.writeCompressed( this.data, out );
|
||||
return javax.xml.bind.DatatypeConverter.printBase64Binary( out.toByteArray() );
|
||||
}
|
||||
catch( IOException e )
|
||||
catch( final IOException e )
|
||||
{
|
||||
AELog.error( e );
|
||||
}
|
||||
@@ -122,7 +122,7 @@ public class GridStorage implements IGridStorage
|
||||
return this.internalGrid == null ? null : this.internalGrid.get();
|
||||
}
|
||||
|
||||
public void setGrid( Grid grid )
|
||||
public void setGrid( final Grid grid )
|
||||
{
|
||||
this.internalGrid = new WeakReference<IGrid>( grid );
|
||||
}
|
||||
@@ -144,12 +144,12 @@ public class GridStorage implements IGridStorage
|
||||
this.isDirty = true;
|
||||
}
|
||||
|
||||
public void addDivided( GridStorage gs )
|
||||
public void addDivided( final GridStorage gs )
|
||||
{
|
||||
this.divided.put( gs, true );
|
||||
}
|
||||
|
||||
public boolean hasDivided( GridStorage myStorage )
|
||||
public boolean hasDivided( final GridStorage myStorage )
|
||||
{
|
||||
return this.divided.containsKey( myStorage );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user