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

yongzao pushed a commit to branch fix-call-inference-error
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/fix-call-inference-error by 
this push:
     new e91b6d8a6fd Update ModelInformation.java
e91b6d8a6fd is described below

commit e91b6d8a6fd2b17644714ba6f7d9843b087ae240
Author: Yongzao <[email protected]>
AuthorDate: Tue Mar 17 20:32:16 2026 +0800

    Update ModelInformation.java
---
 .../apache/iotdb/commons/model/ModelInformation.java | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/model/ModelInformation.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/model/ModelInformation.java
index 160af89615c..54496018951 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/model/ModelInformation.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/model/ModelInformation.java
@@ -236,7 +236,7 @@ public class ModelInformation {
   }
 
   public static ModelInformation deserialize(ByteBuffer buffer) {
-         ModelStatus status = 
ModelStatus.values()[ReadWriteIOUtils.readInt(buffer)];
+    ModelStatus status = 
ModelStatus.values()[ReadWriteIOUtils.readInt(buffer)];
     String modelName = ReadWriteIOUtils.readString(buffer);
     if (status == ModelStatus.UNAVAILABLE) {
       return new ModelInformation(modelName, status);
@@ -265,17 +265,11 @@ public class ModelInformation {
     String attribute = ReadWriteIOUtils.readString(buffer);
 
     return new ModelInformation(
-      modelName,
-        inputShape,
-        outputShape,
-        inputDataType,
-        outputDataType,
-        attribute,
-        status);
+        modelName, inputShape, outputShape, inputDataType, outputDataType, 
attribute, status);
   }
 
   public static ModelInformation deserialize(InputStream stream) throws 
IOException {
-         ModelStatus status = 
ModelStatus.values()[ReadWriteIOUtils.readInt(stream)];
+    ModelStatus status = 
ModelStatus.values()[ReadWriteIOUtils.readInt(stream)];
     String modelName = ReadWriteIOUtils.readString(stream);
     if (status == ModelStatus.UNAVAILABLE) {
       return new ModelInformation(modelName, status);
@@ -303,13 +297,7 @@ public class ModelInformation {
 
     String attribute = ReadWriteIOUtils.readString(stream);
     return new ModelInformation(
-      modelName,
-        inputShape,
-        outputShape,
-        inputDataType,
-        outputDataType,
-        attribute,
-        status);
+        modelName, inputShape, outputShape, inputDataType, outputDataType, 
attribute, status);
   }
 
   public ByteBuffer serializeShowModelResult() throws IOException {

Reply via email to