Deleted unnecessary casts with Eclipse

This commit is contained in:
Andrew
2014-09-28 11:56:16 -07:00
parent 94d5319038
commit da63aca95c
89 changed files with 348 additions and 360 deletions
+2 -2
View File
@@ -233,7 +233,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
if ( machine instanceof ICraftingWatcherHost )
{
ICraftingWatcherHost swh = (ICraftingWatcherHost) machine;
CraftingWatcher iw = new CraftingWatcher( this, (ICraftingWatcherHost) swh );
CraftingWatcher iw = new CraftingWatcher( this, swh );
watchers.put( gridNode, iw );
swh.updateWatcher( iw );
}
@@ -420,7 +420,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
public boolean canAccept(IAEStack input)
{
for (CraftingCPUCluster cpu : cpuClusters)
if ( cpu.canAccept( (IAEItemStack) input ) )
if ( cpu.canAccept( input ) )
return true;
return false;
+1 -1
View File
@@ -305,7 +305,7 @@ public class EnergyGridCache implements IEnergyGrid
if ( machine instanceof IEnergyWatcherHost )
{
IEnergyWatcherHost swh = (IEnergyWatcherHost) machine;
EnergyWatcher iw = new EnergyWatcher( this, (IEnergyWatcherHost) swh );
EnergyWatcher iw = new EnergyWatcher( this, swh );
watchers.put( node, iw );
swh.updateWatcher( iw );
}
+3 -3
View File
@@ -249,7 +249,7 @@ public class GridStorageCache implements IStorageGrid
if ( machine instanceof IStackWatcherHost )
{
IStackWatcherHost swh = (IStackWatcherHost) machine;
ItemWatcher iw = new ItemWatcher( this, (IStackWatcherHost) swh );
ItemWatcher iw = new ItemWatcher( this, swh );
watchers.put( node, iw );
swh.updateWatcher( iw );
}
@@ -286,10 +286,10 @@ public class GridStorageCache implements IStorageGrid
switch (chan)
{
case FLUIDS:
fluidMonitor.postChange( up_or_down > 0, (IItemList<IAEFluidStack>) availableItems, src );
fluidMonitor.postChange( up_or_down > 0, availableItems, src );
break;
case ITEMS:
itemMonitor.postChange( up_or_down > 0, (IItemList<IAEItemStack>) availableItems, src );
itemMonitor.postChange( up_or_down > 0, availableItems, src );
break;
default:
}
+3 -3
View File
@@ -94,7 +94,7 @@ public class PathGridCache implements IPathingGrid
int nodes = myGrid.getNodes().size();
ticksUntilReady = 20 + Math.max( 0, nodes / 100 - 20 );
channelsByBlocks = nodes * used;
channelPowerUsage = (double) channelsByBlocks / 128.0;
channelPowerUsage = channelsByBlocks / 128.0;
myGrid.getPivot().beginVisit( new AdHocChannelUpdater( used ) );
}
@@ -110,7 +110,7 @@ public class PathGridCache implements IPathingGrid
ticksUntilReady = 20 + Math.max( 0, nodes / 100 - 20 );
channelsByBlocks = nodes * used;
channelPowerUsage = (double) channelsByBlocks / 128.0;
channelPowerUsage = channelsByBlocks / 128.0;
myGrid.getPivot().beginVisit( new AdHocChannelUpdater( used ) );
}
@@ -177,7 +177,7 @@ public class PathGridCache implements IPathingGrid
achievementPost();
booting = false;
channelPowerUsage = (double) channelsByBlocks / 128.0;
channelPowerUsage = channelsByBlocks / 128.0;
myGrid.postEvent( new MENetworkBootingStatusChange() );
}
}
+1 -1
View File
@@ -101,7 +101,7 @@ public class SecurityCache implements IGridCache, ISecurityGrid
{
if ( machine instanceof ISecurityProvider )
{
securityProvider.remove( (ISecurityProvider) machine );
securityProvider.remove( machine );
updateSecurityKey();
}
}