prefer isEmpty over length() == 0
This commit is contained in:
@@ -110,7 +110,7 @@ public class GroupIngredient implements IIngredient
|
||||
this.isInside = false;
|
||||
}
|
||||
|
||||
if( out.size() == 0 )
|
||||
if( out.isEmpty() )
|
||||
{
|
||||
throw new MissingIngredientError( this.toString() + " - group could not be resolved to any items." );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user