Finally use Java7 <>
This commit is contained in:
@@ -84,7 +84,7 @@ import appeng.recipes.handlers.OreRegistration;
|
||||
public class RecipeHandler implements IRecipeHandler
|
||||
{
|
||||
private final RecipeData data;
|
||||
private final List<String> tokens = new LinkedList<String>();
|
||||
private final List<String> tokens = new LinkedList<>();
|
||||
|
||||
public RecipeHandler()
|
||||
{
|
||||
@@ -379,7 +379,7 @@ public class RecipeHandler implements IRecipeHandler
|
||||
throw new IllegalStateException( "Recipes must now be loaded in Init." );
|
||||
}
|
||||
|
||||
final Map<Class, Integer> processed = new HashMap<Class, Integer>();
|
||||
final Map<Class, Integer> processed = new HashMap<>();
|
||||
for( final ICraftHandler ch : this.data.handlers )
|
||||
{
|
||||
try
|
||||
@@ -505,7 +505,7 @@ public class RecipeHandler implements IRecipeHandler
|
||||
|
||||
private List<IWebsiteSerializer> findRecipe( final ItemStack output )
|
||||
{
|
||||
final List<IWebsiteSerializer> out = new LinkedList<IWebsiteSerializer>();
|
||||
final List<IWebsiteSerializer> out = new LinkedList<>();
|
||||
|
||||
for( final ICraftHandler ch : this.data.handlers )
|
||||
{
|
||||
@@ -683,8 +683,8 @@ public class RecipeHandler implements IRecipeHandler
|
||||
|
||||
private List<List<IIngredient>> parseLines( final Iterable<String> subList ) throws RecipeError
|
||||
{
|
||||
final List<List<IIngredient>> out = new LinkedList<List<IIngredient>>();
|
||||
List<IIngredient> cList = new LinkedList<IIngredient>();
|
||||
final List<List<IIngredient>> out = new LinkedList<>();
|
||||
List<IIngredient> cList = new LinkedList<>();
|
||||
|
||||
boolean hasQty = false;
|
||||
int qty = 1;
|
||||
@@ -701,7 +701,7 @@ public class RecipeHandler implements IRecipeHandler
|
||||
{
|
||||
out.add( cList );
|
||||
}
|
||||
cList = new LinkedList<IIngredient>();
|
||||
cList = new LinkedList<>();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user