commit | 890967ffc4d4c16fbbeaa1a84d7f09f839c139c0 | [log] [tgz] |
---|---|---|
author | Marco Miller <marco.miller@ericsson.com> | Wed Feb 19 13:59:06 2020 -0500 |
committer | Marco Miller <marco.miller@ericsson.com> | Wed Feb 19 13:59:18 2020 -0500 |
tree | 760baff21ffe9596d2d94d43a304ba6f230e32db | |
parent | 707a917c1d985afaa1dfeb9c6381888d1ab0cf8a [diff] | |
parent | fa69bf7220461e519607c8ef00c80349c8b9a1c4 [diff] |
Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Make constants final Change-Id: I4dd63e123cf895dbc28d1623a7272a004fd87579
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 56cff5a..6dcc80e 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; - static String GERRIT_ADMIN_PROTOCOL_PREFIX = "gerrit+"; + static final int SSH_COMMAND_FAILED = -1; + 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;