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

Commit be4412b

Browse files
committed
fix files
1 parent 39098e4 commit be4412b

2 files changed

Lines changed: 4 additions & 3 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.Paths;
27+
import java.nio.file.Path;
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(Paths.get(protoSchemaFile));
70+
byte[] content = Files.readAllBytes(Path.of(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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.google.protobuf.util.FieldMaskUtil;
2727
import java.io.IOException;
2828
import java.nio.file.Files;
29+
import java.nio.file.Path;
2930
import java.nio.file.Paths;
3031
import javax.annotation.Nonnull;
3132

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

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

0 commit comments

Comments
 (0)