prefer isEmpty over length() == 0

This commit is contained in:
thatsIch
2015-09-25 23:18:27 +02:00
parent 430b33b7a3
commit 2d71b0e34a
12 changed files with 15 additions and 15 deletions
@@ -75,7 +75,7 @@ public class IngredientSet implements IIngredient
List<ItemStack> out = new LinkedList<ItemStack>();
out.addAll( this.items );
if( out.size() == 0 )
if( out.isEmpty() )
{
throw new MissingIngredientError( this.toString() + " - group could not be resolved to any items." );
}