You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by xy...@apache.org on 2023/06/02 21:10:52 UTC

[helix] 02/02: Inline

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

xyuanlu pushed a commit to branch metaclient
in repository https://gitbox.apache.org/repos/asf/helix.git

commit 5fd184bfa1097c28dbe93a9990bcf7ccabc870ba
Author: mapeng <ma...@linkedin.com>
AuthorDate: Fri Jun 2 13:59:35 2023 -0400

    Inline
---
 .../org/apache/helix/metaclient/recipes/lock/DataRecordSerializer.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta-client/src/main/java/org/apache/helix/metaclient/recipes/lock/DataRecordSerializer.java b/meta-client/src/main/java/org/apache/helix/metaclient/recipes/lock/DataRecordSerializer.java
index 6fee7bdea..bf7806327 100644
--- a/meta-client/src/main/java/org/apache/helix/metaclient/recipes/lock/DataRecordSerializer.java
+++ b/meta-client/src/main/java/org/apache/helix/metaclient/recipes/lock/DataRecordSerializer.java
@@ -26,7 +26,6 @@ import org.apache.helix.zookeeper.datamodel.serializer.ZNRecordSerializer;
 public class DataRecordSerializer extends ZNRecordSerializer {
   @Override
   public Object deserialize(byte[] bytes) {
-    Object o = super.deserialize(bytes);
-    return new DataRecord((ZNRecord) o);
+    return new DataRecord((ZNRecord) super.deserialize(bytes));
   }
 }