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 bbd1157a00f..5011d3b2971 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 final class OmKeyLocationInfo { 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 38d09225519..187509f81bb 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 static org.apache.hadoop.util.Time.monotonicNow; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.ws.rs.HEAD; - /** * Implementation of keyManager. */ @@ -163,8 +161,8 @@ public class KeyManagerImpl implements KeyManager { 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 73a0cf9ca02..2a732c75e35 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() {