pkolaczk commented on code in PR #2460:
URL: https://github.com/apache/cassandra/pull/2460#discussion_r1252941079


##########
src/java/org/apache/cassandra/index/sai/disk/io/IndexFileUtils.java:
##########
@@ -89,60 +89,20 @@ static class IncrementalChecksumSequentialWriter extends 
SequentialWriter implem
             super(file, writerOption);
         }
 
-        @Override
-        public void writeByte(int b) throws IOException
-        {
-            super.writeByte(b);
-            checksum.update(b);
-        }
-
-        @Override
-        public void write(byte[] b) throws IOException
-        {
-            super.write(b);
-            checksum.update(b);
-        }
-
-        @Override
-        public void write(byte[] b, int off, int len) throws IOException
-        {
-            super.write(b, off, len);
-            checksum.update(b, off, len);
-        }
-
-        @Override
-        public void writeChar(int v) throws IOException
-        {
-            super.writeChar(v);
-            addTochecksum(v, 2);
-        }
-
-        @Override
-        public void writeInt(int v) throws IOException
-        {
-            super.writeInt(v);
-            addTochecksum(v, 4);
-        }
-
-        @Override
-        public void writeLong(long v) throws IOException
-        {
-            super.writeLong(v);
-            addTochecksum(v, 8);
-        }
-
-        public long getChecksum()
+        public long getChecksum() throws IOException

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to