Skip to content

Commit 4e99d36

Browse files
committed
Reorder methods
1 parent d59e941 commit 4e99d36

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/trino-main/src/main/java/io/trino/sql/planner/plan/Assignments.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ public Builder put(Entry<Symbol, Expression> assignment)
218218
return this;
219219
}
220220

221+
public Builder add(Assignment assignment)
222+
{
223+
put(assignment.output(), assignment.expression());
224+
return this;
225+
}
226+
221227
public Builder putIdentities(Iterable<Symbol> symbols)
222228
{
223229
for (Symbol symbol : symbols) {
@@ -236,11 +242,5 @@ public Assignments build()
236242
{
237243
return new Assignments(assignments);
238244
}
239-
240-
public Builder add(Assignment assignment)
241-
{
242-
put(assignment.output(), assignment.expression());
243-
return this;
244-
}
245245
}
246246
}

0 commit comments

Comments
 (0)