Skip to content

Commit 96cf27b

Browse files
Code style fixes.
Signed-off-by: Yury-Fridlyand <[email protected]>
1 parent 07debe3 commit 96cf27b

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

core/src/main/java/org/opensearch/sql/ast/tree/CloseCursor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
*/
1616
public class CloseCursor extends UnresolvedPlan {
1717

18-
/** An instance of {@link Cursor} */
18+
/**
19+
* An instance of {@link FetchCursor}.
20+
*/
1921
private UnresolvedPlan cursor;
2022

2123
@Override

core/src/main/java/org/opensearch/sql/executor/execution/CommandPlan.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class CommandPlan extends AbstractPlan {
3131

3232
protected final ResponseListener<ExecutionEngine.QueryResponse> listener;
3333

34+
/** Constructor. */
3435
public CommandPlan(QueryId queryId, UnresolvedPlan plan, QueryService queryService,
3536
ResponseListener<ExecutionEngine.QueryResponse> listener) {
3637
super(queryId);

core/src/main/java/org/opensearch/sql/executor/execution/QueryPlanFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import org.opensearch.sql.ast.statement.Explain;
1818
import org.opensearch.sql.ast.statement.Query;
1919
import org.opensearch.sql.ast.statement.Statement;
20-
import org.opensearch.sql.ast.tree.FetchCursor;
2120
import org.opensearch.sql.ast.tree.CloseCursor;
21+
import org.opensearch.sql.ast.tree.FetchCursor;
2222
import org.opensearch.sql.ast.tree.UnresolvedPlan;
2323
import org.opensearch.sql.common.response.ResponseListener;
2424
import org.opensearch.sql.exception.UnsupportedCursorRequestException;

core/src/test/java/org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitorTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import java.util.Map;
3333
import java.util.Set;
3434
import java.util.stream.Stream;
35-
3635
import org.apache.commons.lang3.tuple.Pair;
3736
import org.junit.jupiter.api.DisplayNameGeneration;
3837
import org.junit.jupiter.api.DisplayNameGenerator;
@@ -144,7 +143,7 @@ public static Stream<Arguments> getPhysicalPlanForTest() {
144143

145144
@ParameterizedTest(name = "{1}")
146145
@MethodSource("getPhysicalPlanForTest")
147-
public void PhysicalPlanVisitor_should_return_null(PhysicalPlan plan, String name) {
146+
public void test_PhysicalPlanVisitor_should_return_null(PhysicalPlan plan, String name) {
148147
assertNull(plan.accept(new PhysicalPlanNodeVisitor<Integer, Object>() {
149148
}, null));
150149
}

protocol/src/test/java/org/opensearch/sql/protocol/response/format/CommandResponseFormatterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class CommandResponseFormatterTest {
2929
public void produces_always_same_output_for_any_query_response() {
3030
var formatter = new CommandResponseFormatter();
3131
assertEquals(formatter.format(mock(QueryResult.class)),
32-
formatter.format(mock(QueryResult.class)));
32+
formatter.format(mock(QueryResult.class)));
3333

3434
QueryResult response = new QueryResult(
3535
new ExecutionEngine.Schema(ImmutableList.of(

0 commit comments

Comments
 (0)