mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Java5 cleanup
- Replace for loops with foreach - Remove unnecessary boxing
This commit is contained in:
1 parent
6721909e84
commit
3db03edbc9
6 files changed
+50
-41
No files matched your search
@@ -73,12 +73,12 @@ public final class RecipeHandler
|
||||
public static void removeRecipe(Recipe recipeMap, MachineRecipe recipe)
|
||||
{
|
||||
List<MachineInput> toRemove = new ArrayList<>();
|
||||
|
||||
for(Iterator iter = recipeMap.get().keySet().iterator(); iter.hasNext();)
|
||||
|
||||
for (Object o : recipeMap.get().keySet())
|
||||
{
|
||||
MachineInput iterInput = (MachineInput)iter.next();
|
||||
|
||||
if(iterInput.testEquality(recipe.getInput()))
|
||||
MachineInput iterInput = (MachineInput) o;
|
||||
|
||||
if (iterInput.testEquality(recipe.getInput()))
|
||||
{
|
||||
toRemove.add(iterInput);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user