Skip to content

Commit

Permalink
Merge pull request #1296 from jmartisk/main-issue-1292
Browse files Browse the repository at this point in the history
Accept FieldOrFragment instead of just Field where appropriate
  • Loading branch information
phillip-kruger authored Mar 3, 2022
2 parents 2b3d824 + 2794be2 commit 16e9816
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public interface Field extends FieldOrFragment {
/*
* Static factory methods
*/
static List<Field> fields(Field... fields) {
static List<FieldOrFragment> fields(FieldOrFragment... fields) {
return asList(fields);
}

Expand Down Expand Up @@ -48,7 +48,7 @@ static Field field(String name, Argument... args) {
}

// (name, args, subfields)
static Field field(String name, List<Argument> args, Field... fields) {
static Field field(String name, List<Argument> args, FieldOrFragment... fields) {
Field field = getNewInstanceOf(Field.class);

field.setName(name);
Expand Down

0 comments on commit 16e9816

Please sign in to comment.