Skip to content

Commit

Permalink
Merge pull request #184 from thatsIch/Final
Browse files Browse the repository at this point in the history
Removes redundant final modifiers of private methods
  • Loading branch information
Cisien committed Sep 29, 2014
2 parents 1404a2f + 3ae8921 commit 3d41ded
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/main/java/appeng/parts/layers/LayerIEnergySink.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private boolean isTileValid()
return !te.isInvalid() && te.getWorldObj().blockExists( te.xCoord, te.yCoord, te.zCoord );
}

final private void addToENet()
private void addToENet()
{
if ( getEnergySinkWorld() == null )
return;
Expand All @@ -59,7 +59,7 @@ final private void addToENet()
}
}

final private void removeFromENet()
private void removeFromENet()
{
if ( getEnergySinkWorld() == null )
return;
Expand All @@ -71,7 +71,7 @@ final private void removeFromENet()
}
}

final private boolean interestedInIC2()
private boolean interestedInIC2()
{
if ( !((IPartHost) this).isInWorld() )
return false;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/appeng/parts/layers/LayerIEnergySource.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private boolean isTileValid()
return !te.isInvalid();
}

final private void addToENet()
private void addToENet()
{
if ( getEnergySourceWorld() == null )
return;
Expand All @@ -58,7 +58,7 @@ final private void addToENet()
}
}

final private void removeFromENet()
private void removeFromENet()
{
if ( getEnergySourceWorld() == null )
return;
Expand All @@ -70,7 +70,7 @@ final private void removeFromENet()
}
}

final private boolean interestedInIC2()
private boolean interestedInIC2()
{
if ( !((IPartHost) this).isInWorld() )
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/appeng/tile/networking/TileEnergyCell.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ final public double injectAEPower(double amt, Actionable mode)
return 0;
}

final private double extractAEPower(double amt, Actionable mode)
private double extractAEPower(double amt, Actionable mode)
{
if ( mode == Actionable.SIMULATE )
{
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/appeng/tile/powersink/IC2.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void setPowerSides(EnumSet<ForgeDirection> sides)
addToENet();
}

final private void addToENet()
private void addToENet()
{
if ( AppEng.instance.isIntegrationEnabled( IntegrationType.IC2 ) )
{
Expand All @@ -89,7 +89,7 @@ final private void addToENet()
}
}

final private void removeFromENet()
private void removeFromENet()
{
if ( AppEng.instance.isIntegrationEnabled( IntegrationType.IC2 ) )
{
Expand Down

0 comments on commit 3d41ded

Please sign in to comment.