From 0e697aa297eeac3810b2f3854d3bc6f05c30e9d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=A2=A6=E6=8A=80=E6=9C=AF?= <596392912@qq.com> Date: Mon, 23 Dec 2024 17:17:24 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BB=A3=E7=A0=81=E7=AE=80?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/redis/serializer/BytesWrapper.java | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/blade-starter-redis/src/main/java/org/springblade/core/redis/serializer/BytesWrapper.java b/blade-starter-redis/src/main/java/org/springblade/core/redis/serializer/BytesWrapper.java index 9ab4cc2..b40c92f 100644 --- a/blade-starter-redis/src/main/java/org/springblade/core/redis/serializer/BytesWrapper.java +++ b/blade-starter-redis/src/main/java/org/springblade/core/redis/serializer/BytesWrapper.java @@ -16,29 +16,23 @@ package org.springblade.core.redis.serializer; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + /** * redis序列化辅助类.单纯的泛型无法定义通用schema,原因是无法通过泛型T得到Class * * @author L.cm */ +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor public class BytesWrapper implements Cloneable { private T value; - public BytesWrapper() { - } - - public BytesWrapper(T value) { - this.value = value; - } - - public void setValue(T value) { - this.value = value; - } - - public T getValue() { - return value; - } - @Override @SuppressWarnings("unchecked") public BytesWrapper clone() {