diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java index bbd1157a00..5011d3b297 100644 --- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java +++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java @@ -123,6 +123,7 @@ public Builder setBlockID(BlockID blockId) { return this; } + @SuppressWarnings("checkstyle:hiddenfield") public Builder setPipeline(Pipeline pipeline) { this.pipeline = pipeline; return this; diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java index 38d0922551..187509f81b 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java @@ -96,8 +96,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.ws.rs.HEAD; - /** * Implementation of keyManager. */ @@ -163,8 +161,8 @@ public void start(OzoneConfiguration configuration) { OZONE_BLOCK_DELETING_SERVICE_TIMEOUT, OZONE_BLOCK_DELETING_SERVICE_TIMEOUT_DEFAULT, TimeUnit.MILLISECONDS); - keyDeletingService = new KeyDeletingService(scmClient.getBlockClient(), this, - blockDeleteInterval, serviceTimeout, configuration); + keyDeletingService = new KeyDeletingService(scmClient.getBlockClient(), + this, blockDeleteInterval, serviceTimeout, configuration); keyDeletingService.start(); } } diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ScmClient.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ScmClient.java index 73a0cf9ca0..2a732c75e3 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ScmClient.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ScmClient.java @@ -35,7 +35,7 @@ public class ScmClient { } ScmBlockLocationProtocol getBlockClient() { - return this.blockClient; + return this.blockClient; } StorageContainerLocationProtocol getContainerClient() {