Renamed constants

This commit is contained in:
thatsIch
2015-01-01 22:13:10 +01:00
parent e0175bac98
commit 52c512635d
118 changed files with 511 additions and 508 deletions
+5 -5
View File
@@ -332,7 +332,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
}
}
static final Comparator<ICraftingPatternDetails> comp = new Comparator<ICraftingPatternDetails>()
static final Comparator<ICraftingPatternDetails> COMPARATOR = new Comparator<ICraftingPatternDetails>()
{
@Override
public int compare(ICraftingPatternDetails firstDetail, ICraftingPatternDetails nextDetail)
@@ -374,7 +374,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
if ( methods == null )
{
tmpCraft.put( out, methods = new TreeSet<ICraftingPatternDetails>( comp ) );
tmpCraft.put( out, methods = new TreeSet<ICraftingPatternDetails>( COMPARATOR ) );
}
methods.add( details );
@@ -604,7 +604,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
return i == 1;
}
final public static ExecutorService craftingPool;
final public static ExecutorService CRAFTING_POOL;
static
{
@@ -618,7 +618,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
};
craftingPool = Executors.newCachedThreadPool( factory );
CRAFTING_POOL = Executors.newCachedThreadPool( factory );
}
@Override
@@ -631,7 +631,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
CraftingJob job = new CraftingJob( world, grid, actionSrc, slotItem, cb );
return craftingPool.submit( job, (ICraftingJob) job );
return CRAFTING_POOL.submit( job, (ICraftingJob) job );
}
public boolean hasCpu(ICraftingCPU cpu)
+4 -4
View File
@@ -64,7 +64,7 @@ public class NetworkMonitor<T extends IAEStack<T>> extends MEMonitorHandler<T>
this.myChannel = chan;
}
final static public LinkedList depth = new LinkedList();
final static public LinkedList DEPTH = new LinkedList();
@Override
protected void postChangesToListeners(Iterable<T> changes, BaseActionSource src)
@@ -74,10 +74,10 @@ public class NetworkMonitor<T extends IAEStack<T>> extends MEMonitorHandler<T>
protected void postChange(boolean Add, Iterable<T> changes, BaseActionSource src)
{
if ( depth.contains( this ) )
if ( DEPTH.contains( this ) )
return;
depth.push( this );
DEPTH.push( this );
this.sendEvent = true;
this.notifyListenersOfChange( changes, src );
@@ -113,7 +113,7 @@ public class NetworkMonitor<T extends IAEStack<T>> extends MEMonitorHandler<T>
}
}
Object last = depth.pop();
Object last = DEPTH.pop();
if ( last != this )
throw new RuntimeException( "Invalid Access to Networked Storage API detected." );
}