From cac8bd5383568549e45f0ddd1e68c8ee3cd9ec78 Mon Sep 17 00:00:00 2001 From: JiaShuo Date: Tue, 8 Sep 2020 16:02:24 +0800 Subject: [PATCH] exclude findbugs --- dev-support/findbugs-exclude.xml | 2 ++ .../java/com/xiaomi/infra/pegasus/client/request/Batch.java | 2 ++ .../com/xiaomi/infra/pegasus/client/request/BatchDelete.java | 2 ++ .../java/com/xiaomi/infra/pegasus/client/request/BatchGet.java | 2 ++ .../xiaomi/infra/pegasus/client/request/BatchMultiDelete.java | 2 ++ .../com/xiaomi/infra/pegasus/client/request/BatchMultiGet.java | 2 ++ .../com/xiaomi/infra/pegasus/client/request/BatchMultiSet.java | 2 ++ .../java/com/xiaomi/infra/pegasus/client/request/BatchSet.java | 2 ++ .../java/com/xiaomi/infra/pegasus/client/request/Delete.java | 3 +++ src/main/java/com/xiaomi/infra/pegasus/client/request/Get.java | 3 +++ .../com/xiaomi/infra/pegasus/client/request/MultiDelete.java | 3 +++ .../java/com/xiaomi/infra/pegasus/client/request/MultiGet.java | 3 +++ .../java/com/xiaomi/infra/pegasus/client/request/MultiSet.java | 3 +++ src/main/java/com/xiaomi/infra/pegasus/client/request/Set.java | 3 +++ 14 files changed, 34 insertions(+) diff --git a/dev-support/findbugs-exclude.xml b/dev-support/findbugs-exclude.xml index 5e4ca365..1f18a83d 100644 --- a/dev-support/findbugs-exclude.xml +++ b/dev-support/findbugs-exclude.xml @@ -15,6 +15,8 @@ + + diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/Batch.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/Batch.java index 7f6857f3..9a88a752 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/Batch.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/Batch.java @@ -13,6 +13,8 @@ public abstract class Batch implements Serializable { + private static final long serialVersionUID = -6267381453465488529L; + private final List requests; public PegasusTableInterface table; public int timeout; diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchDelete.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchDelete.java index b4aafd3c..4974a0eb 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchDelete.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchDelete.java @@ -9,6 +9,8 @@ public class BatchDelete extends Batch { + private static final long serialVersionUID = -3749505015438921947L; + public BatchDelete(List deletes) { super(deletes); } diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchGet.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchGet.java index bbafe919..965a3a3d 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchGet.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchGet.java @@ -9,6 +9,8 @@ public class BatchGet extends Batch { + private static final long serialVersionUID = -8713375648386293450L; + public BatchGet(List gets) { super(gets); } diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiDelete.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiDelete.java index d94d6aa7..7b2dd31f 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiDelete.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiDelete.java @@ -9,6 +9,8 @@ public class BatchMultiDelete extends Batch { + private static final long serialVersionUID = 4692293597610231870L; + public BatchMultiDelete(List multiDeletes) { super(multiDeletes); } diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiGet.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiGet.java index 9015aced..4ea7ee9b 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiGet.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiGet.java @@ -10,6 +10,8 @@ public class BatchMultiGet extends Batch { + private static final long serialVersionUID = -8398629822956682881L; + public BatchMultiGet(List multiGets) { super(multiGets); } diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiSet.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiSet.java index eeed2470..6676c5c4 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiSet.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchMultiSet.java @@ -9,6 +9,8 @@ public class BatchMultiSet extends Batch { + private static final long serialVersionUID = -7112478467009023481L; + public BatchMultiSet(List multiSets) { super(multiSets); } diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchSet.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchSet.java index 7361e324..cd455798 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchSet.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/BatchSet.java @@ -9,6 +9,8 @@ public class BatchSet extends Batch { + private static final long serialVersionUID = 7339081203717442862L; + public BatchSet(List sets) { super(sets); } diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/Delete.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/Delete.java index bd7116bb..777c7871 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/Delete.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/Delete.java @@ -6,6 +6,9 @@ import java.io.Serializable; public class Delete implements Serializable { + + private static final long serialVersionUID = 7472471005807908575L; + public final byte[] hashKey; public final byte[] sortKey; diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/Get.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/Get.java index 1f30f8e8..b022d99b 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/Get.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/Get.java @@ -6,6 +6,9 @@ import java.io.Serializable; public class Get implements Serializable { + + private static final long serialVersionUID = 5022721155142508979L; + public final byte[] hashKey; public final byte[] sortKey; diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiDelete.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiDelete.java index 7cb31102..78d9e6c4 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiDelete.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiDelete.java @@ -8,6 +8,9 @@ import java.util.List; public class MultiDelete implements Serializable { + + private static final long serialVersionUID = -9090489322713020570L; + public final byte[] hashKey; public final List sortKeys; diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiGet.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiGet.java index 7b12777a..b09fd600 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiGet.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiGet.java @@ -8,6 +8,9 @@ import java.util.List; public class MultiGet implements Serializable { + + private static final long serialVersionUID = 2068964280456524026L; + public final byte[] hashKey; public final List sortKeys; diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiSet.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiSet.java index f875aae9..7ebdc2d6 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiSet.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/MultiSet.java @@ -9,6 +9,9 @@ import org.apache.commons.lang3.tuple.Pair; public class MultiSet implements Serializable { + + private static final long serialVersionUID = -2236077975122224688L; + public final byte[] hashKey; public final List> values; diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/request/Set.java b/src/main/java/com/xiaomi/infra/pegasus/client/request/Set.java index c54063aa..d19a8ee9 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/request/Set.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/request/Set.java @@ -6,6 +6,9 @@ import java.io.Serializable; public class Set implements Serializable { + + private static final long serialVersionUID = -2136211461120973309L; + public final byte[] hashKey; public final byte[] sortKey; public final byte[] value;