diff --git a/core/src/main/java/org/opensearch/sql/ast/expression/QualifiedName.java b/core/src/main/java/org/opensearch/sql/ast/expression/QualifiedName.java index 4f2d7eabf0..852b61cfa8 100644 --- a/core/src/main/java/org/opensearch/sql/ast/expression/QualifiedName.java +++ b/core/src/main/java/org/opensearch/sql/ast/expression/QualifiedName.java @@ -75,13 +75,19 @@ public Optional first() { } /** + *
    * Get rest parts of the qualified name. Assume that there must be remaining parts so caller is
-   * responsible for the check (first() or size() must be called first).
- * For example:
- * {@code
  QualifiedName name = ...
  Optional first = - * name.first();
  if (first.isPresent()) {
  name.rest() ...
  }
} - * + * responsible for the check (first() or size() must be called first). + * For example: + * {@code + * QualifiedName name = ... + * Optional first = name.first(); + * if (first.isPresent()) { + * name.rest() ... + * } + * } * @return rest part(s) + *
*/ public QualifiedName rest() { return QualifiedName.of(parts.subList(1, parts.size()));