Finally use Java7 <>

This commit is contained in:
yueh
2017-07-20 21:21:45 +02:00
parent 8ec8babb6a
commit 7de90ed0ae
145 changed files with 315 additions and 315 deletions
@@ -60,8 +60,8 @@ public final class DisassembleRecipe extends net.minecraftforge.registries.IForg
final IItems items = definitions.items();
final IMaterials mats = definitions.materials();
this.cellMappings = new HashMap<IItemDefinition, IItemDefinition>( 4 );
this.nonCellMappings = new HashMap<IItemDefinition, IItemDefinition>( 5 );
this.cellMappings = new HashMap<>( 4 );
this.nonCellMappings = new HashMap<>( 5 );
this.cellMappings.put( items.cell1k(), mats.cell1kPart() );
this.cellMappings.put( items.cell4k(), mats.cell4kPart() );
@@ -105,7 +105,7 @@ public class ShapedRecipe extends net.minecraftforge.registries.IForgeRegistryEn
throw new IllegalStateException( ret.toString() );
}
final Map<Character, IIngredient> itemMap = new HashMap<Character, IIngredient>();
final Map<Character, IIngredient> itemMap = new HashMap<>();
for( ; idx < recipe.length; idx += 2 )
{
@@ -37,7 +37,7 @@ import appeng.api.recipes.IIngredient;
public class ShapelessRecipe extends net.minecraftforge.registries.IForgeRegistryEntry.Impl<IRecipe> implements IRecipe, IRecipeBakeable
{
private final ArrayList<Object> input = new ArrayList<Object>();
private final ArrayList<Object> input = new ArrayList<>();
private ItemStack output = ItemStack.EMPTY;
private boolean disable = false;
@@ -77,7 +77,7 @@ public class ShapelessRecipe extends net.minecraftforge.registries.IForgeRegistr
return false;
}
final ArrayList<Object> required = new ArrayList<Object>( this.input );
final ArrayList<Object> required = new ArrayList<>( this.input );
for( int x = 0; x < var1.getSizeInventory(); x++ )
{