commit | fa69bf7220461e519607c8ef00c80349c8b9a1c4 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Wed Feb 19 19:41:23 2020 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Wed Feb 19 19:41:23 2020 +0900 |
tree | 2a061ba212d02f5fb385526a2eb416ceef99d7af | |
parent | ba4eabb68bdaeca1b5c2adb0c1585a77a8a4fe84 [diff] |
Make constants final Change-Id: I12605d9aee56fa8738ce4fb03f0fdd316312d6e8
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java index 46c8892..ccd8bf4 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
@@ -27,8 +27,8 @@ public class GerritSshApi implements AdminApi { private static final FluentLogger logger = FluentLogger.forEnclosingClass(); - static int SSH_COMMAND_FAILED = -1; - private static String GERRIT_ADMIN_PROTOCOL_PREFIX = "gerrit+"; + static final int SSH_COMMAND_FAILED = -1; + private static final String GERRIT_ADMIN_PROTOCOL_PREFIX = "gerrit+"; protected final SshHelper sshHelper; protected final URIish uri;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorage.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorage.java index 64397f9..39158f3 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorage.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationTasksStorage.java
@@ -57,7 +57,7 @@ } } - private static Gson GSON = new Gson(); + private static final Gson GSON = new Gson(); private final Path refUpdates;