Skip to content

Commit 6fba352

Browse files
committed
Apply suggestions
1 parent ca8b0b6 commit 6fba352

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/src/main/java/com/scalar/db/storage/objectstorage/ObjectStorageTableMetadata.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import java.util.Map;
1212
import java.util.Objects;
1313
import java.util.Set;
14+
import java.util.function.Function;
1415
import java.util.stream.Collectors;
1516
import javax.annotation.Nullable;
1617
import javax.annotation.concurrent.Immutable;
@@ -51,7 +52,9 @@ public ObjectStorageTableMetadata(
5152
public ObjectStorageTableMetadata(TableMetadata tableMetadata) {
5253
Map<String, String> clusteringOrders =
5354
tableMetadata.getClusteringKeyNames().stream()
54-
.collect(Collectors.toMap(c -> c, c -> tableMetadata.getClusteringOrder(c).name()));
55+
.collect(
56+
Collectors.toMap(
57+
Function.identity(), c -> tableMetadata.getClusteringOrder(c).name()));
5558
Map<String, String> columnTypeByName = new HashMap<>();
5659
tableMetadata
5760
.getColumnNames()

core/src/main/java/com/scalar/db/storage/objectstorage/blob/BlobWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
import java.util.stream.Collectors;
2525

2626
public class BlobWrapper implements ObjectStorageWrapper {
27-
public static final String STORAGE_NAME = "blob";
28-
2927
private final BlobContainerClient client;
3028
private final Duration requestTimeoutInSeconds;
3129
private final ParallelTransferOptions parallelTransferOptions;

0 commit comments

Comments
 (0)