We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1616d2a commit 33aeaeeCopy full SHA for 33aeaee
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/PlainObjectPath.java
@@ -103,9 +103,7 @@ public static PlainObjectPath deserialize(InputStream stream) throws IOException
103
}
104
105
public static PlainObjectPath deserializeObjectValue(ByteBuffer byteBuffer) {
106
- byte[] bytes = new byte[byteBuffer.remaining()];
107
- byteBuffer.get(bytes);
108
- return new PlainObjectPath(new String(bytes, StandardCharsets.UTF_8));
+ return new PlainObjectPath(StandardCharsets.UTF_8.decode(byteBuffer).toString());
109
110
111
@Override
0 commit comments