diff --git a/spark/src/main/java/org/opensearch/sql/spark/functions/response/DefaultSparkSqlFunctionResponseHandle.java b/spark/src/main/java/org/opensearch/sql/spark/functions/response/DefaultSparkSqlFunctionResponseHandle.java index faef49c071..dd574b2d30 100644 --- a/spark/src/main/java/org/opensearch/sql/spark/functions/response/DefaultSparkSqlFunctionResponseHandle.java +++ b/spark/src/main/java/org/opensearch/sql/spark/functions/response/DefaultSparkSqlFunctionResponseHandle.java @@ -186,7 +186,7 @@ public ExecutionEngine.Schema schema() { } /** visitor implementation for traversing the json object */ - public static class JsonVisitorImpl implements JsonVisitor { + private static class JsonVisitorImpl implements JsonVisitor { public ExprValue visit(Object obj) { if (obj instanceof JSONObject) { return visitObject((JSONObject) obj);