Skip to content

Commit

Permalink
Remove arguments to toArray
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Sep 20, 2024
1 parent 01362fb commit 587fe42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private static TreeVisitor<?, ExecutionContext> or(DeclarativeRecipe recipe) {
conditions.add(r instanceof DeclarativeRecipe ? or((DeclarativeRecipe) r) : r.getVisitor());
}
//noinspection unchecked
return Preconditions.or(conditions.<TreeVisitor<?, ExecutionContext>>toArray(new TreeVisitor[0]));
return Preconditions.or(conditions.toArray(new TreeVisitor[0]));
}

private static boolean isScanningRecipe(Recipe recipe) {
Expand Down

0 comments on commit 587fe42

Please sign in to comment.