From 7c6509bc4a1cae9fa8935a1007eafa2961474f4f Mon Sep 17 00:00:00 2001 From: larkee Date: Wed, 18 Dec 2024 12:43:40 +1100 Subject: [PATCH] style: fix formatting --- .../executor/spanner/CloudClientExecutor.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java index 03c92ba8dc6..64a29ed3e61 100644 --- a/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java +++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java @@ -2849,14 +2849,14 @@ private com.google.spanner.executor.v1.ValueList buildRow( /** Construct a StructType for a given struct. This is used to set the row type. */ private com.google.spanner.v1.StructType buildStructType(StructReader struct) { com.google.spanner.v1.StructType.Builder rowTypeBuilder = - com.google.spanner.v1.StructType.newBuilder(); + com.google.spanner.v1.StructType.newBuilder(); for (int i = 0; i < struct.getColumnCount(); ++i) { com.google.cloud.spanner.Type columnType = struct.getColumnType(i); rowTypeBuilder.addFields( - com.google.spanner.v1.StructType.Field.newBuilder() - .setName(struct.getType().getStructFields().get(i).getName()) - .setType(cloudTypeToTypeProto(columnType)) - .build()); + com.google.spanner.v1.StructType.Field.newBuilder() + .setName(struct.getType().getStructFields().get(i).getName()) + .setType(cloudTypeToTypeProto(columnType)) + .build()); } return rowTypeBuilder.build(); } @@ -3104,11 +3104,11 @@ private com.google.spanner.executor.v1.ValueList buildStruct(StructReader struct case STRUCT: { com.google.spanner.executor.v1.ValueList.Builder builder = - com.google.spanner.executor.v1.ValueList.newBuilder(); + com.google.spanner.executor.v1.ValueList.newBuilder(); List values = struct.getStructList(i); for (StructReader structValue : values) { com.google.spanner.executor.v1.Value.Builder valueProto = - com.google.spanner.executor.v1.Value.newBuilder(); + com.google.spanner.executor.v1.Value.newBuilder(); if (structValue == null) { builder.addValue(valueProto.setIsNull(true).build()); } else { @@ -3117,7 +3117,7 @@ private com.google.spanner.executor.v1.ValueList buildStruct(StructReader struct } value.setArrayValue(builder.build()); value.setArrayType( - com.google.spanner.v1.Type.newBuilder().setCode(TypeCode.STRUCT).build()); + com.google.spanner.v1.Type.newBuilder().setCode(TypeCode.STRUCT).build()); } break; default: @@ -3139,7 +3139,8 @@ private com.google.spanner.executor.v1.ValueList buildStruct(StructReader struct } } structBuilder.addValue(value.build()); - }; + } + ; return structBuilder.build(); }