github-advanced-security[bot] commented on code in PR #824:
URL: https://github.com/apache/tsfile/pull/824#discussion_r3302630048


##########
java/tsfile/src/main/java/org/apache/tsfile/write/record/Tablet.java:
##########
@@ -764,6 +777,104 @@
     writeValues(stream);
   }
 
+  private int serializedSizeOfMeasurementSchemas() {
+    int size = Byte.BYTES;
+    if (schemas != null) {
+      size += Integer.BYTES;
+      for (int i = 0; i < schemas.size(); i++) {
+        size += Byte.BYTES;
+        final IMeasurementSchema schema = schemas.get(i);
+        if (schema != null) {
+          size += schema.serializedSize();
+          size += Byte.BYTES;
+        }
+      }
+    }
+    return size;
+  }
+
+  private int serializedSizeOfTimes() {
+    int size = Byte.BYTES;
+    if (timestamps != null) {
+      size += (long) Long.BYTES * rowSize;

Review Comment:
   ## CodeQL / Implicit narrowing conversion in compound assignment
   
   Implicit cast of source type long to narrower destination type [int](1).
   
   [Show more 
details](https://github.com/apache/tsfile/security/code-scanning/20)



-- 
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]

Reply via email to