Make fields final if possible to ensure immutability

This commit is contained in:
thatsIch
2014-09-29 09:54:34 +02:00
parent 35f6c84d9f
commit 474596f095
261 changed files with 607 additions and 597 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ public class TickTracker implements Comparable<TickTracker>
public final IGridNode node;
public final TickManagerCache host;
public long LastFiveTicksTime = 0;
public final long LastFiveTicksTime = 0;
public long lastTick;
public int current_rate;
+2 -2
View File
@@ -8,8 +8,8 @@ import appeng.parts.p2p.PartP2PTunnel;
public class TunnelIterator<T extends PartP2PTunnel> implements Iterator<T>
{
Iterator<T> wrapped;
Class targetType;
final Iterator<T> wrapped;
final Class targetType;
T Next;
private void findNext()