Code cleanup

Added missing this, annotations, etc.
This commit is contained in:
yueh
2018-08-30 20:33:08 +02:00
parent fed12cb99f
commit a2091d10fe
77 changed files with 227 additions and 270 deletions
@@ -178,10 +178,10 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
for( int x = 0; x < this.availableSlots(); x++ )
{
final IAEItemStack ais = this.getConfig().getAEStackInSlot( x );
if( ais != null && itemsToSend > 0 )
if( ais != null && this.itemsToSend > 0 )
{
Configured = true;
while( itemsToSend > 0 )
while( this.itemsToSend > 0 )
{
if( this.importStuff( myAdaptor, ais, inv, energy, fzMode ) )
{
@@ -193,7 +193,7 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
if( !Configured )
{
while( itemsToSend > 0 )
while( this.itemsToSend > 0 )
{
if( this.importStuff( myAdaptor, null, inv, energy, fzMode ) )
{
@@ -266,7 +266,7 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
{
if( this.myEnergyWatcher != null )
{
this.myEnergyWatcher.add( (double) this.reportingValue );
this.myEnergyWatcher.add( this.reportingValue );
}
try
@@ -390,7 +390,7 @@ public class PartCable extends AEBasePart implements IPartCable
// a cable bus
if( conOnSide || this.getHost().getPart( d ) != null )
{
ch = ( (int) data.readByte() ) & 0xFF;
ch = ( data.readByte() ) & 0xFF;
}
if( ch != this.getChannelsOnSide( d.ordinal() ) )
@@ -95,7 +95,7 @@ public class PartP2PLight extends PartP2PTunnel<PartP2PLight> implements IGridTi
this.opacity = data.readInt();
this.setOutput( this.lastValue > 0 );
return lastValue != oldValue || oldOpacity != this.opacity;
return this.lastValue != oldValue || oldOpacity != this.opacity;
}
private boolean doWork()
@@ -162,7 +162,7 @@ public abstract class PartP2PTunnel<T extends PartP2PTunnel> extends PartBasicSt
public void writeToStream( ByteBuf data ) throws IOException
{
super.writeToStream( data );
data.writeShort( getFrequency() );
data.writeShort( this.getFrequency() );
}
@Override
@@ -260,7 +260,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
return;
}
final IAEItemStack ais = (IAEItemStack) this.getDisplayed();
final IAEItemStack ais = this.getDisplayed();
if( ais == null )
{