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() {