Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit a8e0bd8

Browse files
committed
fix
1 parent 53daf12 commit a8e0bd8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/CreateSchemaBundleRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import com.google.protobuf.ByteString;
2525
import java.io.IOException;
2626
import java.nio.file.Files;
27-
import java.nio.file.Path;
27+
import java.nio.file.Paths;
2828
import javax.annotation.Nonnull;
2929

3030
/**
@@ -67,7 +67,7 @@ private CreateSchemaBundleRequest(@Nonnull String tableId, @Nonnull String schem
6767
public CreateSchemaBundleRequest setProtoSchema(@Nonnull String protoSchemaFile)
6868
throws IOException {
6969
Preconditions.checkNotNull(protoSchemaFile, "protoSchema must be set");
70-
byte[] content = Files.readAllBytes(Path.of(protoSchemaFile));
70+
byte[] content = Files.readAllBytes(Paths.get(protoSchemaFile));
7171
requestBuilder.setSchemaBundle(
7272
com.google.bigtable.admin.v2.SchemaBundle.newBuilder()
7373
.setProtoSchema(

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/UpdateSchemaBundleRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import com.google.protobuf.util.FieldMaskUtil;
2727
import java.io.IOException;
2828
import java.nio.file.Files;
29-
import java.nio.file.Path;
3029
import java.nio.file.Paths;
3130
import javax.annotation.Nonnull;
3231

@@ -81,7 +80,7 @@ private UpdateSchemaBundleRequest(
8180

8281
/** Changes the deletion protection of an existing schema bundle. */
8382
public UpdateSchemaBundleRequest setProtoSchema(String protoSchemaFile) throws IOException {
84-
byte[] content = Files.readAllBytes(Path.of(protoSchemaFile));
83+
byte[] content = Files.readAllBytes(Paths.get(protoSchemaFile));
8584
requestBuilder.setSchemaBundle(
8685
com.google.bigtable.admin.v2.SchemaBundle.newBuilder()
8786
.setProtoSchema(

0 commit comments

Comments
 (0)