This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 3d394823398 HBASE-27314 Addendum fix spotless errors
3d394823398 is described below

commit 3d3948233982ed7539404b3e35f628428318200d
Author: Duo Zhang <[email protected]>
AuthorDate: Sun Sep 4 18:07:14 2022 +0800

    HBASE-27314 Addendum fix spotless errors
---
 .../apache/hadoop/hbase/io/hfile/NoOpIndexBlockEncoder.java  | 12 ++++--------
 .../org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3.java  |  3 ++-
 .../hbase/io/hfile/TestHFileWriterV3WithDataEncoders.java    |  3 ++-
 3 files changed, 8 insertions(+), 10 deletions(-)

diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/NoOpIndexBlockEncoder.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/NoOpIndexBlockEncoder.java
index 20cb21c1b14..18d21deceb2 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/NoOpIndexBlockEncoder.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/NoOpIndexBlockEncoder.java
@@ -24,21 +24,17 @@ import java.io.DataInput;
 import java.io.DataInputStream;
 import java.io.DataOutput;
 import java.io.IOException;
-import java.nio.ByteBuffer;
 import java.util.concurrent.atomic.AtomicReference;
-import org.apache.hadoop.hbase.ByteBufferKeyOnlyKeyValue;
 import org.apache.hadoop.hbase.Cell;
 import org.apache.hadoop.hbase.CellComparator;
 import org.apache.hadoop.hbase.CellUtil;
 import org.apache.hadoop.hbase.KeyValue;
-import org.apache.hadoop.hbase.PrivateCellUtil;
 import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding;
 import org.apache.hadoop.hbase.io.encoding.IndexBlockEncoding;
 import org.apache.hadoop.hbase.nio.ByteBuff;
 import org.apache.hadoop.hbase.regionserver.KeyValueScanner;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.util.ClassSize;
-import org.apache.hadoop.hbase.util.ObjectIntPair;
 import org.apache.yetus.audience.InterfaceAudience;
 
 /**
@@ -104,10 +100,10 @@ public class NoOpIndexBlockEncoder implements 
HFileIndexBlockEncoder {
 
   /**
    * Writes this chunk into the given output stream in the root block index 
format. This format is
-   * similar to the {@link HFile} version 1 block index format, except that we 
store on-disk size
-   * of the block instead of its uncompressed size.
-   * @param out the data output stream to write the block index to. Typically 
a stream writing
-   *            into an {@link HFile} block. n
+   * similar to the {@link HFile} version 1 block index format, except that we 
store on-disk size of
+   * the block instead of its uncompressed size.
+   * @param out the data output stream to write the block index to. Typically 
a stream writing into
+   *            an {@link HFile} block. n
    */
   private void writeRoot(BlockIndexChunk blockIndexChunk, DataOutput out) 
throws IOException {
     for (int i = 0; i < blockIndexChunk.getNumEntries(); ++i) {
diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3.java
 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3.java
index 6227740f66d..1481b7a3a9d 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3.java
@@ -177,7 +177,8 @@ public class TestHFileWriterV3 {
     // Comparator class name is stored in the trailer in version 3.
     CellComparator comparator = trailer.createComparator();
     HFileBlockIndex.BlockIndexReader dataBlockIndexReader =
-      new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator, 
trailer.getNumDataIndexLevels());
+      new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator,
+        trailer.getNumDataIndexLevels());
     HFileBlockIndex.BlockIndexReader metaBlockIndexReader =
       new HFileBlockIndex.ByteArrayKeyBlockIndexReader(1);
 
diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3WithDataEncoders.java
 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3WithDataEncoders.java
index 9945b57ae2f..71821f9cb30 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3WithDataEncoders.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3WithDataEncoders.java
@@ -160,7 +160,8 @@ public class TestHFileWriterV3WithDataEncoders {
     // Comparator class name is stored in the trailer in version 3.
     CellComparator comparator = trailer.createComparator();
     HFileBlockIndex.BlockIndexReader dataBlockIndexReader =
-      new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator, 
trailer.getNumDataIndexLevels());
+      new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator,
+        trailer.getNumDataIndexLevels());
     HFileBlockIndex.BlockIndexReader metaBlockIndexReader =
       new HFileBlockIndex.ByteArrayKeyBlockIndexReader(1);
 

Reply via email to