Skip to content

Commit

Permalink
Prefer singletonList
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed May 29, 2024
1 parent a734f47 commit 6f0cdfa
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

import static com.facebook.presto.common.type.BooleanType.BOOLEAN;
import static java.lang.String.format;
import static java.util.Arrays.asList;
import static java.util.Collections.unmodifiableList;
import static java.util.Collections.singletonList;
import static java.util.Objects.requireNonNull;

/**
Expand Down Expand Up @@ -54,7 +53,7 @@ public Type getType()
@Override
public List<RowExpression> getChildren()
{
return unmodifiableList(asList(subquery));
return singletonList(subquery);
}

@Override
Expand Down

0 comments on commit 6f0cdfa

Please sign in to comment.