Fix class extension problem with SshModule The change in [1] breaks inheritance of the pull-replication's `SshModule`, and the code does not compile. This change fixes the problem. [1] https://gerrit-review.googlesource.com/c/gerrit/+/400622 Change-Id: I85ce3aa33addffc941415c68b19588677af79d1c
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SshModule.java b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SshModule.java index 9c89781..ab3a76c 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SshModule.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SshModule.java
@@ -14,9 +14,17 @@ package com.googlesource.gerrit.plugins.replication.pull; +import com.google.gerrit.extensions.annotations.PluginName; import com.google.gerrit.sshd.PluginCommandModule; +import com.google.inject.Inject; class SshModule extends PluginCommandModule { + + @Inject + SshModule(@PluginName String pluginName) { + super(pluginName); + } + @Override protected void configureCommands() { command(StartFetchCommand.class);