Skip to content

Commit fccf652

Browse files
committed
fix: cleanup
1 parent f5e187a commit fccf652

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

rules_bazel/java/integration_test.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _diff_integration_goldens_impl(ctx):
2323
rm -rf $(find ./ -type f -name 'PlaceholderFile.java')
2424
rm -r $(find ./ -type d -empty)
2525
cd ..
26-
diff -r --context=50 codegen_tmp test/integration/goldens/{api_name} > {diff_output}
26+
diff -r codegen_tmp test/integration/goldens/{api_name} > {diff_output}
2727
# Bash `diff` command will return exit code 1 when there are differences between the two
2828
# folders. So we explicitly `exit 0` after the diff command to avoid build failure.
2929
exit 0

src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientTestClassComposer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ protected List<Statement> createClassMemberFieldDecls(
165165
.setIsStatic(true)
166166
.build()))
167167
.collect(Collectors.toList()));
168+
168169
fieldDeclStatements.addAll(
169170
classMemberVarExprs.values().stream()
170171
.filter(v -> !isMockVarExprFn.apply(v))

src/main/java/com/google/api/generator/gapic/composer/grpc/ServiceClientTestClassComposer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected MethodDefinition createStartStaticServerMethod(
160160
varInitExprs.add(serviceToVarInitExprFn.apply(service));
161161
mockServiceVarExprs.add(serviceToVarExprFn.apply(service));
162162
// Careful: Java 8 and 11 make different ordering choices if this set is not explicitly sorted.
163-
// In Java 11, lexicographic or insertion order is not preserved.
163+
// Context: https://github.com/googleapis/gapic-generator-java/pull/750
164164
for (Service mixinService :
165165
context.mixinServices().stream()
166166
.sorted((s1, s2) -> s2.name().compareTo(s1.name()))

test/integration/apis/kms/v1/cloudkms_test_mixins_v1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ documentation:
1616
Manages keys and performs cryptographic operations in a central cloud
1717
service, for direct use by other cloud resources and applications.
1818
rules:
19-
# This RPC shouldn't appear in the proto, since it's been cloberred by KMS's definition in the proto.
19+
# This RPC shouldn't appear in the proto, since it's been clobered by KMS's definition in the proto.
2020
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
2121
description: |-
2222
Gets the access control policy for a resource. Returns an empty policy
2323
if the resource exists and does not have a policy set.
2424
25-
# This RPC shouldn't appear in the proto, since it's not in the HTTP rules list below,
25+
# This RPC shouldn't appear in the proto, since it's not in the HTTP rules list below,
2626
# even though the documentation field is set.
2727
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
2828
description: |-

0 commit comments

Comments
 (0)