Always use qualified access for fields and methods
This commit is contained in:
+9
-9
@@ -93,11 +93,11 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
|
||||
return this.getHandler().extractItems( request, mode, src );
|
||||
}
|
||||
|
||||
localDepthSemaphore++;
|
||||
this.localDepthSemaphore++;
|
||||
final T leftover = this.getHandler().extractItems( request, mode, src );
|
||||
localDepthSemaphore--;
|
||||
this.localDepthSemaphore--;
|
||||
|
||||
if( localDepthSemaphore == 0 )
|
||||
if( this.localDepthSemaphore == 0 )
|
||||
{
|
||||
this.monitorDifference( request.copy(), leftover, true, src );
|
||||
}
|
||||
@@ -157,11 +157,11 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
|
||||
return this.getHandler().injectItems( input, mode, src );
|
||||
}
|
||||
|
||||
localDepthSemaphore++;
|
||||
this.localDepthSemaphore++;
|
||||
final T leftover = this.getHandler().injectItems( input, mode, src );
|
||||
localDepthSemaphore--;
|
||||
this.localDepthSemaphore--;
|
||||
|
||||
if( localDepthSemaphore == 0 )
|
||||
if( this.localDepthSemaphore == 0 )
|
||||
{
|
||||
this.monitorDifference( input.copy(), leftover, false, src );
|
||||
}
|
||||
@@ -255,13 +255,13 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
|
||||
|
||||
protected void postChange( final boolean add, final Iterable<T> changes, final BaseActionSource src )
|
||||
{
|
||||
if( localDepthSemaphore > 0 || GLOBAL_DEPTH.contains( this ) )
|
||||
if( this.localDepthSemaphore > 0 || GLOBAL_DEPTH.contains( this ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
GLOBAL_DEPTH.push( this );
|
||||
localDepthSemaphore++;
|
||||
this.localDepthSemaphore++;
|
||||
|
||||
this.sendEvent = true;
|
||||
|
||||
@@ -304,7 +304,7 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
|
||||
}
|
||||
|
||||
final NetworkMonitor<?> last = GLOBAL_DEPTH.pop();
|
||||
localDepthSemaphore--;
|
||||
this.localDepthSemaphore--;
|
||||
|
||||
if( last != this )
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ public class EnergyThreshold implements Comparable<EnergyThreshold>
|
||||
|
||||
public IEnergyWatcher getEnergyWatcher()
|
||||
{
|
||||
return watcher;
|
||||
return this.watcher;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -73,9 +73,9 @@ public class EnergyThreshold implements Comparable<EnergyThreshold>
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
long temp;
|
||||
temp = Double.doubleToLongBits( threshold );
|
||||
temp = Double.doubleToLongBits( this.threshold );
|
||||
result = prime * result + (int) ( temp ^ ( temp >>> 32 ) );
|
||||
result = prime * result + ( ( watcher == null ) ? 0 : watcher.hashCode() );
|
||||
result = prime * result + ( ( this.watcher == null ) ? 0 : this.watcher.hashCode() );
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -90,25 +90,25 @@ public class EnergyThreshold implements Comparable<EnergyThreshold>
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if( getClass() != obj.getClass() )
|
||||
if( this.getClass() != obj.getClass() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
EnergyThreshold other = (EnergyThreshold) obj;
|
||||
if( Double.doubleToLongBits( threshold ) != Double.doubleToLongBits( other.threshold ) )
|
||||
if( Double.doubleToLongBits( this.threshold ) != Double.doubleToLongBits( other.threshold ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if( watcher == null )
|
||||
if( this.watcher == null )
|
||||
{
|
||||
if( other.watcher != null )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if( !watcher.equals( other.watcher ) )
|
||||
else if( !this.watcher.equals( other.watcher ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ public class EnergyWatcher implements IEnergyWatcher
|
||||
@Override
|
||||
public void reset()
|
||||
{
|
||||
for( Iterator<EnergyThreshold> iterator = myInterests.iterator(); iterator.hasNext(); )
|
||||
for( Iterator<EnergyThreshold> iterator = this.myInterests.iterator(); iterator.hasNext(); )
|
||||
{
|
||||
final EnergyThreshold threshold = iterator.next();
|
||||
|
||||
|
||||
@@ -448,7 +448,7 @@ public class CellInventory implements ICellInventory
|
||||
{
|
||||
NBTTagCompound compoundTag = this.tagCompound.getCompoundTag( itemSlots[slot] );
|
||||
int stackSize = this.tagCompound.getInteger( itemSlotCount[slot] );
|
||||
loadCellItem( compoundTag, stackSize );
|
||||
this.loadCellItem( compoundTag, stackSize );
|
||||
}
|
||||
|
||||
// cellItems.clean();
|
||||
|
||||
Reference in New Issue
Block a user