Skip to content

Commit 783d6b6

Browse files
committed
feat: fixed linting
1 parent dc59d71 commit 783d6b6

3 files changed

Lines changed: 18 additions & 7 deletions

File tree

‎sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
import com.google.api.generator.engine.ast.RelationalOperationExpr;
4949
import com.google.api.generator.engine.ast.ScopeNode;
5050
import com.google.api.generator.engine.ast.Statement;
51-
import com.google.api.generator.engine.ast.SuperObjectValue;
5251
import com.google.api.generator.engine.ast.StringObjectValue;
52+
import com.google.api.generator.engine.ast.SuperObjectValue;
5353
import com.google.api.generator.engine.ast.TernaryExpr;
5454
import com.google.api.generator.engine.ast.ThisObjectValue;
5555
import com.google.api.generator.engine.ast.TypeNode;
@@ -766,7 +766,8 @@ private static List<MethodDefinition> createMethodVariants(
766766
methodArg -> {
767767
TypeNode argType = methodArg.type();
768768
if (methodArg.isResourceNameHelper() && !methodArg.field().isRequired()) {
769-
argType = TypeNode.withReference(argType.reference().copyAndSetNullable(true));
769+
argType =
770+
TypeNode.withReference(argType.reference().copyAndSetNullable(true));
770771
}
771772
VariableExpr.Builder argBuilder =
772773
VariableExpr.builder()
@@ -1469,7 +1470,9 @@ private static ClassDefinition createNestedRpcPageClass(
14691470
VariableExpr.withVariable(
14701471
Variable.builder()
14711472
.setName("response")
1472-
.setType(TypeNode.withReference(method.outputType().reference().copyAndSetNullable(true)))
1473+
.setType(
1474+
TypeNode.withReference(
1475+
method.outputType().reference().copyAndSetNullable(true)))
14731476
.build());
14741477
MethodDefinition privateCtor =
14751478
MethodDefinition.constructorBuilder()

‎sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ private static List<MethodDefinition> createBuilderHelperMethods(
503503
VariableExpr.withVariable(
504504
Variable.builder()
505505
.setName("clientContext")
506-
.setType(TypeNode.withReference(FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
506+
.setType(
507+
TypeNode.withReference(
508+
FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
507509
.build());
508510

509511
MethodDefinition newBuilderMethodTwo =
@@ -618,7 +620,9 @@ private static List<MethodDefinition> createNestedBuilderConstructorMethods(
618620
VariableExpr.withVariable(
619621
Variable.builder()
620622
.setName("clientContext")
621-
.setType(TypeNode.withReference(FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
623+
.setType(
624+
TypeNode.withReference(
625+
FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
622626
.build());
623627
MethodDefinition clientContextCtor =
624628
ctorMakerFn.apply(

‎sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,9 @@ protected List<MethodDefinition> createBuilderHelperMethods(
13341334
VariableExpr clientContextVarExpr =
13351335
VariableExpr.withVariable(
13361336
Variable.builder()
1337-
.setType(TypeNode.withReference(FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
1337+
.setType(
1338+
TypeNode.withReference(
1339+
FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
13381340
.setName("clientContext")
13391341
.build());
13401342
javaMethods.add(
@@ -1646,7 +1648,9 @@ private static List<MethodDefinition> createNestedClassConstructorMethods(
16461648
VariableExpr clientContextVarExpr =
16471649
VariableExpr.withVariable(
16481650
Variable.builder()
1649-
.setType(TypeNode.withReference(FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
1651+
.setType(
1652+
TypeNode.withReference(
1653+
FIXED_TYPESTORE.get("ClientContext").reference().copyAndSetNullable(true)))
16501654
.setName("clientContext")
16511655
.build());
16521656
Reference pagedSettingsBuilderRef =

0 commit comments

Comments
 (0)