Finally use Java7 <>
This commit is contained in:
@@ -57,7 +57,7 @@ public final class Inscribe extends InscriberProcess
|
||||
|
||||
final IInscriberRecipeBuilder builder = AEApi.instance().registries().inscriber().builder();
|
||||
final ItemStack[] realInput = this.getImprintable().getItemStackSet();
|
||||
final List<ItemStack> inputs = new ArrayList<ItemStack>( realInput.length );
|
||||
final List<ItemStack> inputs = new ArrayList<>( realInput.length );
|
||||
Collections.addAll( inputs, realInput );
|
||||
final ItemStack top = ( this.getTopOptional() == null ) ? ItemStack.EMPTY : this.getTopOptional().getItemStack();
|
||||
final ItemStack bot = ( this.getBotOptional() == null ) ? ItemStack.EMPTY : this.getBotOptional().getItemStack();
|
||||
|
||||
@@ -57,7 +57,7 @@ public final class Press extends InscriberProcess
|
||||
|
||||
final IInscriberRecipeBuilder builder = AEApi.instance().registries().inscriber().builder();
|
||||
final ItemStack[] realInput = this.getImprintable().getItemStackSet();
|
||||
final List<ItemStack> inputs = new ArrayList<ItemStack>( realInput.length );
|
||||
final List<ItemStack> inputs = new ArrayList<>( realInput.length );
|
||||
Collections.addAll( inputs, realInput );
|
||||
final ItemStack top = ( this.getTopOptional() == null ) ? ItemStack.EMPTY : this.getTopOptional().getItemStack();
|
||||
final ItemStack bot = ( this.getBotOptional() == null ) ? ItemStack.EMPTY : this.getBotOptional().getItemStack();
|
||||
|
||||
@@ -84,7 +84,7 @@ public class Shaped implements ICraftHandler, IWebsiteSerializer
|
||||
public void register() throws RegistrationError, MissingIngredientError
|
||||
{
|
||||
char first = 'A';
|
||||
final List<Object> args = new ArrayList<Object>();
|
||||
final List<Object> args = new ArrayList<>();
|
||||
|
||||
for( int y = 0; y < this.rows; y++ )
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@ public class Shapeless implements ICraftHandler, IWebsiteSerializer
|
||||
@Override
|
||||
public void register() throws RegistrationError, MissingIngredientError
|
||||
{
|
||||
final List<Object> args = new ArrayList<Object>();
|
||||
final List<Object> args = new ArrayList<>();
|
||||
for( final IIngredient i : this.inputs )
|
||||
{
|
||||
args.add( i );
|
||||
|
||||
Reference in New Issue
Block a user