Skip to content

Commit 4eb0220

Browse files
committed
fix typo
1 parent 86b0f8b commit 4eb0220

File tree

2 files changed

+3
-3
lines changed
  • x-pack/plugin
    • esql-core/src/main/java/org/elasticsearch/xpack/esql/core/tree
    • esql/src/main/java/org/elasticsearch/xpack/esql/plan

2 files changed

+3
-3
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/tree/Node.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public List<T> children() {
6868
public void forEachDown(Consumer<? super T> action) {
6969
action.accept((T) this);
7070
// please do not refactor it to a for-each loop to avoid
71-
// allocating iterator that performs concurrent modification checks and extra stack traces
71+
// allocating iterator that performs concurrent modification checks and extra stack frames
7272
for (int c = 0, size = children.size(); c < size; c++) {
7373
children.get(c).forEachDown(action);
7474
}
@@ -86,7 +86,7 @@ public <E extends T> void forEachDown(Class<E> typeToken, Consumer<? super E> ac
8686
@SuppressWarnings("unchecked")
8787
public void forEachUp(Consumer<? super T> action) {
8888
// please do not refactor it to a for-each loop to avoid
89-
// allocating iterator that performs concurrent modification checks and extra stack traces
89+
// allocating iterator that performs concurrent modification checks and extra stack frames
9090
for (int c = 0, size = children.size(); c < size; c++) {
9191
children.get(c).forEachUp(action);
9292
}

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/QueryPlan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private static Object doTransformExpression(Object arg, Function<Expression, ? e
144144
List<Object> transformed = null;
145145
boolean hasChanged = false;
146146
// please do not refactor it to a for-each loop to avoid
147-
// allocating iterator that performs concurrent modification checks and extra stack traces
147+
// allocating iterator that performs concurrent modification checks and extra stack frames
148148
for (int i = 0, size = c.size(); i < size; i++) {
149149
var e = c.get(i);
150150
Object next = doTransformExpression(e, traversal);

0 commit comments

Comments
 (0)