Skip to content

Commit dc7998a

Browse files
authored
Merge branch 'main' into integ/sl_GoogleJavaFormat2
Signed-off-by: Mitchell Gale <[email protected]>
2 parents 7f85b3b + aa88b41 commit dc7998a

File tree

199 files changed

+1251
-1664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+1251
-1664
lines changed

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ spotless {
8888
'core/src/main/java/org/opensearch/sql/expression/**/*.java',
8989
'core/src/main/java/org/opensearch/sql/executor/**/*.java',
9090
'core/src/main/java/org/opensearch/sql/exception/**/*.java'
91+
'core/src/main/java/org/opensearch/sql/analysis/**/*.java',
92+
'core/src/test/java/org/opensearch/sql/data/**/*.java',
93+
'core/src/test/java/org/opensearch/sql/datasource/**/*.java',
94+
'core/src/test/java/org/opensearch/sql/ast/**/*.java'
9195
exclude '**/build/**', '**/build-*/**'
9296
}
93-
// importOrder()
97+
importOrder()
9498
// licenseHeader("/*\n" +
9599
// " * Copyright OpenSearch Contributors\n" +
96100
// " * SPDX-License-Identifier: Apache-2.0\n" +
@@ -99,7 +103,6 @@ spotless {
99103
trimTrailingWhitespace()
100104
endWithNewline()
101105
googleJavaFormat('1.17.0').reflowLongStrings().groupArtifact('com.google.googlejavaformat:google-java-format')
102-
103106
}
104107
}
105108

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ repositories {
3434
mavenCentral()
3535
}
3636

37-
checkstyleTest.ignoreFailures = true
3837
checkstyleMain.ignoreFailures = true
38+
checkstyleTest.ignoreFailures = true
3939

4040
pitest {
4141
targetClasses = ['org.opensearch.sql.*']

core/src/main/java/org/opensearch/sql/analysis/AnalysisContext.java

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
76
package org.opensearch.sql.analysis;
87

98
import java.util.ArrayList;
@@ -13,26 +12,22 @@
1312
import org.opensearch.sql.expression.NamedExpression;
1413
import org.opensearch.sql.expression.function.FunctionProperties;
1514

16-
/**
17-
* The context used for Analyzer.
18-
*/
15+
/** The context used for Analyzer. */
1916
public class AnalysisContext {
20-
/**
21-
* Environment stack for symbol scope management.
22-
*/
17+
/** Environment stack for symbol scope management. */
2318
private TypeEnvironment environment;
24-
@Getter
25-
private final List<NamedExpression> namedParseExpressions;
2619

27-
@Getter
28-
private final FunctionProperties functionProperties;
20+
@Getter private final List<NamedExpression> namedParseExpressions;
21+
22+
@Getter private final FunctionProperties functionProperties;
2923

3024
public AnalysisContext() {
3125
this(new TypeEnvironment(null));
3226
}
3327

3428
/**
3529
* Class CTOR.
30+
*
3631
* @param environment Env to set to a new instance.
3732
*/
3833
public AnalysisContext(TypeEnvironment environment) {
@@ -41,9 +36,7 @@ public AnalysisContext(TypeEnvironment environment) {
4136
this.functionProperties = new FunctionProperties();
4237
}
4338

44-
/**
45-
* Push a new environment.
46-
*/
39+
/** Push a new environment. */
4740
public void push() {
4841
environment = new TypeEnvironment(environment);
4942
}

0 commit comments

Comments
 (0)