Reduces visibility of internal fields/methods
Reduces the visibility of all fields to private and create setters/getters when necessary. Exceptions are fields with GuiSync as these need to be public. Reduces the visibility of internal methods to private/protected/default when possible.
This commit is contained in:
@@ -27,7 +27,7 @@ import appeng.util.Platform;
|
||||
public class CellConfig extends AppEngInternalInventory
|
||||
{
|
||||
|
||||
final ItemStack is;
|
||||
private final ItemStack is;
|
||||
|
||||
public CellConfig( final ItemStack is )
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ import appeng.util.Platform;
|
||||
|
||||
public final class CellUpgrades extends StackUpgradeInventory
|
||||
{
|
||||
final ItemStack is;
|
||||
private final ItemStack is;
|
||||
|
||||
public CellUpgrades( final ItemStack is, final int upgrades )
|
||||
{
|
||||
|
||||
@@ -32,9 +32,9 @@ import appeng.util.Platform;
|
||||
public class NetworkToolViewer implements INetworkTool
|
||||
{
|
||||
|
||||
final AppEngInternalInventory inv;
|
||||
final ItemStack is;
|
||||
final IGridHost gh;
|
||||
private final AppEngInternalInventory inv;
|
||||
private final ItemStack is;
|
||||
private final IGridHost gh;
|
||||
|
||||
public NetworkToolViewer( final ItemStack is, final IGridHost gHost )
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ import appeng.api.implementations.guiobjects.IGuiItemObject;
|
||||
public class QuartzKnifeObj implements IGuiItemObject
|
||||
{
|
||||
|
||||
final ItemStack is;
|
||||
private final ItemStack is;
|
||||
|
||||
public QuartzKnifeObj( final ItemStack o )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user