From e319d351460ecfa492a7433bae1435c61f650646 Mon Sep 17 00:00:00 2001 From: neverchanje Date: Wed, 29 Apr 2020 16:09:14 +0800 Subject: [PATCH 1/2] fix: make SetItem Serializable --- src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java b/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java index d0593d34..5d45fbad 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java @@ -3,11 +3,7 @@ // can be found in the LICENSE file in the root directory of this source tree. package com.xiaomi.infra.pegasus.client; -/** - * @author qinzuoyan - *

Set item. - */ -public class SetItem { +public class SetItem extends Serializable { public byte[] hashKey = null; public byte[] sortKey = null; public byte[] value = null; From 8a47141453ccb9e300bfc651198db5f351bd7681 Mon Sep 17 00:00:00 2001 From: neverchanje Date: Mon, 11 May 2020 16:22:43 +0800 Subject: [PATCH 2/2] fix compile --- src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java b/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java index 5d45fbad..4c5e76fc 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/SetItem.java @@ -3,7 +3,9 @@ // can be found in the LICENSE file in the root directory of this source tree. package com.xiaomi.infra.pegasus.client; -public class SetItem extends Serializable { +import java.io.Serializable; + +public class SetItem implements Serializable { public byte[] hashKey = null; public byte[] sortKey = null; public byte[] value = null;