diff --git a/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts b/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts index edb621de6..6a387bd17 100644 --- a/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts +++ b/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts @@ -92,9 +92,7 @@ extraJavaModuleInfo { module("org.mockito:mockito-core", "org.mockito") module("org.mockito:mockito-junit-jupiter", "org.mockito.junit.jupiter") - //spotbugs + // spotbugs module("com.github.spotbugs:spotbugs-annotations", "com.github.spotbugs.annotations") - module("com.google.code.findbugs:jsr305", "java.annotation") { - exportAllPackages() - } + module("com.google.code.findbugs:jsr305", "java.annotation") { exportAllPackages() } } diff --git a/server/src/main/java/com/hedera/block/server/persistence/storage/FileSystemBlockStorage.java b/server/src/main/java/com/hedera/block/server/persistence/storage/FileSystemBlockStorage.java index c094583c3..767284c23 100644 --- a/server/src/main/java/com/hedera/block/server/persistence/storage/FileSystemBlockStorage.java +++ b/server/src/main/java/com/hedera/block/server/persistence/storage/FileSystemBlockStorage.java @@ -16,10 +16,11 @@ package com.hedera.block.server.persistence.storage; +import static com.hedera.block.server.Constants.BLOCKNODE_STORAGE_ROOT_PATH_KEY; + import com.hedera.block.protos.BlockStreamServiceGrpcProto; import edu.umd.cs.findbugs.annotations.NonNull; import io.helidon.config.Config; - import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; @@ -28,10 +29,9 @@ import java.nio.file.Path; import java.util.Optional; -import static com.hedera.block.server.Constants.BLOCKNODE_STORAGE_ROOT_PATH_KEY; - /** - * The FileSystemBlockStorage class implements the BlockStorage interface to store blocks to the filesystem. + * The FileSystemBlockStorage class implements the BlockStorage interface to store blocks to the + * filesystem. */ public class FileSystemBlockStorage implements BlockStorage { @@ -47,28 +47,31 @@ public class FileSystemBlockStorage implements BlockStorage