From 6d982fc28f8ef649523a7891cf17843b01479ccb Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 16 Aug 2012 13:22:37 -0400 Subject: [PATCH] Cleaning up serialVersionUIDs Change-Id: If7b8ed2d5f880734257230b8cbf4a9c7ebce9a96 --- .../java/com/google/gerrit/server/cache/h2/H2CacheImpl.java | 2 ++ .../src/main/java/gerrit/PRED__load_commit_labels_1.java | 2 -- .../src/main/java/gerrit/PRED__user_label_range_4.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_change_branch_1.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_change_owner_1.java | 1 - gerrit-server/src/main/java/gerrit/PRED_change_project_1.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_change_topic_1.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_commit_author_3.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_commit_committer_3.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_commit_delta_4.java | 1 - gerrit-server/src/main/java/gerrit/PRED_commit_edits_2.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_commit_message_1.java | 2 -- gerrit-server/src/main/java/gerrit/PRED_current_user_1.java | 1 - gerrit-server/src/main/java/gerrit/PRED_current_user_2.java | 1 - .../src/main/java/gerrit/PRED_get_legacy_approval_types_1.java | 2 -- 15 files changed, 2 insertions(+), 24 deletions(-) diff --git a/gerrit-cache-h2/src/main/java/com/google/gerrit/server/cache/h2/H2CacheImpl.java b/gerrit-cache-h2/src/main/java/com/google/gerrit/server/cache/h2/H2CacheImpl.java index ad437b7ef9..a5bdacc77b 100644 --- a/gerrit-cache-h2/src/main/java/com/google/gerrit/server/cache/h2/H2CacheImpl.java +++ b/gerrit-cache-h2/src/main/java/com/google/gerrit/server/cache/h2/H2CacheImpl.java @@ -270,6 +270,8 @@ public class H2CacheImpl extends AbstractLoadingCache { Funnel funnel() { return new Funnel() { + private static final long serialVersionUID = 1L; + @Override public void funnel(K from, PrimitiveSink into) { try { diff --git a/gerrit-server/src/main/java/gerrit/PRED__load_commit_labels_1.java b/gerrit-server/src/main/java/gerrit/PRED__load_commit_labels_1.java index a0bb820e07..a26a4921fe 100644 --- a/gerrit-server/src/main/java/gerrit/PRED__load_commit_labels_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED__load_commit_labels_1.java @@ -26,8 +26,6 @@ import com.googlecode.prolog_cafe.lang.Term; /** Exports list of {@code commit_label( label('Code-Review', 2), user(12345789) )}. */ class PRED__load_commit_labels_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; - private static final SymbolTerm sym_commit_label = SymbolTerm.intern("commit_label", 2); private static final SymbolTerm sym_label = SymbolTerm.intern("label", 2); private static final SymbolTerm sym_user = SymbolTerm.intern("user", 1); diff --git a/gerrit-server/src/main/java/gerrit/PRED__user_label_range_4.java b/gerrit-server/src/main/java/gerrit/PRED__user_label_range_4.java index 68f9bf64da..a955307b6b 100644 --- a/gerrit-server/src/main/java/gerrit/PRED__user_label_range_4.java +++ b/gerrit-server/src/main/java/gerrit/PRED__user_label_range_4.java @@ -38,8 +38,6 @@ import com.googlecode.prolog_cafe.lang.Term; * */ class PRED__user_label_range_4 extends Predicate.P4 { - private static final long serialVersionUID = 1L; - PRED__user_label_range_4(Term a1, Term a2, Term a3, Term a4, Operation n) { arg1 = a1; arg2 = a2; diff --git a/gerrit-server/src/main/java/gerrit/PRED_change_branch_1.java b/gerrit-server/src/main/java/gerrit/PRED_change_branch_1.java index 7cc9f35fa9..51396ed9c4 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_change_branch_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED_change_branch_1.java @@ -26,8 +26,6 @@ import com.googlecode.prolog_cafe.lang.SymbolTerm; import com.googlecode.prolog_cafe.lang.Term; public class PRED_change_branch_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; - public PRED_change_branch_1(Term a1, Operation n) { arg1 = a1; cont = n; diff --git a/gerrit-server/src/main/java/gerrit/PRED_change_owner_1.java b/gerrit-server/src/main/java/gerrit/PRED_change_owner_1.java index 09be90257c..b127fff254 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_change_owner_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED_change_owner_1.java @@ -28,7 +28,6 @@ import com.googlecode.prolog_cafe.lang.SymbolTerm; import com.googlecode.prolog_cafe.lang.Term; public class PRED_change_owner_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; private static final SymbolTerm user = SymbolTerm.intern("user", 1); public PRED_change_owner_1(Term a1, Operation n) { diff --git a/gerrit-server/src/main/java/gerrit/PRED_change_project_1.java b/gerrit-server/src/main/java/gerrit/PRED_change_project_1.java index d1cd20ddf6..fb9f86533a 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_change_project_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED_change_project_1.java @@ -26,8 +26,6 @@ import com.googlecode.prolog_cafe.lang.SymbolTerm; import com.googlecode.prolog_cafe.lang.Term; public class PRED_change_project_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; - public PRED_change_project_1(Term a1, Operation n) { arg1 = a1; cont = n; diff --git a/gerrit-server/src/main/java/gerrit/PRED_change_topic_1.java b/gerrit-server/src/main/java/gerrit/PRED_change_topic_1.java index d200f7eec0..34885f9141 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_change_topic_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED_change_topic_1.java @@ -25,8 +25,6 @@ import com.googlecode.prolog_cafe.lang.SymbolTerm; import com.googlecode.prolog_cafe.lang.Term; public class PRED_change_topic_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; - public PRED_change_topic_1(Term a1, Operation n) { arg1 = a1; cont = n; diff --git a/gerrit-server/src/main/java/gerrit/PRED_commit_author_3.java b/gerrit-server/src/main/java/gerrit/PRED_commit_author_3.java index a0817a1a78..370090915d 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_commit_author_3.java +++ b/gerrit-server/src/main/java/gerrit/PRED_commit_author_3.java @@ -24,8 +24,6 @@ import com.googlecode.prolog_cafe.lang.PrologException; import com.googlecode.prolog_cafe.lang.Term; public class PRED_commit_author_3 extends AbstractCommitUserIdentityPredicate { - private static final long serialVersionUID = 1L; - public PRED_commit_author_3(Term a1, Term a2, Term a3, Operation n) { super(a1, a2, a3, n); } diff --git a/gerrit-server/src/main/java/gerrit/PRED_commit_committer_3.java b/gerrit-server/src/main/java/gerrit/PRED_commit_committer_3.java index 78e6cf72a5..64823dff38 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_commit_committer_3.java +++ b/gerrit-server/src/main/java/gerrit/PRED_commit_committer_3.java @@ -24,8 +24,6 @@ import com.googlecode.prolog_cafe.lang.PrologException; import com.googlecode.prolog_cafe.lang.Term; public class PRED_commit_committer_3 extends AbstractCommitUserIdentityPredicate { - private static final long serialVersionUID = 1L; - public PRED_commit_committer_3(Term a1, Term a2, Term a3, Operation n) { super(a1, a2, a3, n); } diff --git a/gerrit-server/src/main/java/gerrit/PRED_commit_delta_4.java b/gerrit-server/src/main/java/gerrit/PRED_commit_delta_4.java index 045297bae4..9ce7098240 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_commit_delta_4.java +++ b/gerrit-server/src/main/java/gerrit/PRED_commit_delta_4.java @@ -43,7 +43,6 @@ import java.util.regex.Pattern; * */ public class PRED_commit_delta_4 extends Predicate.P4 { - private static final long serialVersionUID = 1L; private static final SymbolTerm add = SymbolTerm.intern("add"); private static final SymbolTerm modify = SymbolTerm.intern("modify"); private static final SymbolTerm delete = SymbolTerm.intern("delete"); diff --git a/gerrit-server/src/main/java/gerrit/PRED_commit_edits_2.java b/gerrit-server/src/main/java/gerrit/PRED_commit_edits_2.java index f0accf0cbd..2c7949c191 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_commit_edits_2.java +++ b/gerrit-server/src/main/java/gerrit/PRED_commit_edits_2.java @@ -54,8 +54,6 @@ import java.util.regex.Pattern; * */ public class PRED_commit_edits_2 extends Predicate.P2 { - private static final long serialVersionUID = 1L; - public PRED_commit_edits_2(Term a1, Term a2, Operation n) { arg1 = a1; arg2 = a2; diff --git a/gerrit-server/src/main/java/gerrit/PRED_commit_message_1.java b/gerrit-server/src/main/java/gerrit/PRED_commit_message_1.java index 0ed744325a..e2eb6b1301 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_commit_message_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED_commit_message_1.java @@ -32,8 +32,6 @@ import com.googlecode.prolog_cafe.lang.Term; * */ public class PRED_commit_message_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; - public PRED_commit_message_1(Term a1, Operation n) { arg1 = a1; cont = n; diff --git a/gerrit-server/src/main/java/gerrit/PRED_current_user_1.java b/gerrit-server/src/main/java/gerrit/PRED_current_user_1.java index 8c70cadf27..09a46f7592 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_current_user_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED_current_user_1.java @@ -33,7 +33,6 @@ import com.googlecode.prolog_cafe.lang.SymbolTerm; import com.googlecode.prolog_cafe.lang.Term; public class PRED_current_user_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; private static final SymbolTerm user = SymbolTerm.intern("user", 1); private static final SymbolTerm anonymous = SymbolTerm.intern("anonymous"); private static final SymbolTerm peerDaemon = SymbolTerm.intern("peer_daemon"); diff --git a/gerrit-server/src/main/java/gerrit/PRED_current_user_2.java b/gerrit-server/src/main/java/gerrit/PRED_current_user_2.java index 1359de1088..3f4b6569b1 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_current_user_2.java +++ b/gerrit-server/src/main/java/gerrit/PRED_current_user_2.java @@ -49,7 +49,6 @@ import java.util.Map; * */ class PRED_current_user_2 extends Predicate.P2 { - private static final long serialVersionUID = 1L; private static final SymbolTerm user = intern("user", 1); private static final SymbolTerm anonymous = intern("anonymous"); diff --git a/gerrit-server/src/main/java/gerrit/PRED_get_legacy_approval_types_1.java b/gerrit-server/src/main/java/gerrit/PRED_get_legacy_approval_types_1.java index 9399865fa9..cbe0fd8bf2 100644 --- a/gerrit-server/src/main/java/gerrit/PRED_get_legacy_approval_types_1.java +++ b/gerrit-server/src/main/java/gerrit/PRED_get_legacy_approval_types_1.java @@ -43,8 +43,6 @@ import java.util.List; * */ class PRED_get_legacy_approval_types_1 extends Predicate.P1 { - private static final long serialVersionUID = 1L; - PRED_get_legacy_approval_types_1(Term a1, Operation n) { arg1 = a1; cont = n;