commit | 61a1e13e2b7110203898d4da05f2e6e47647e3b3 | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Wed Jan 17 17:01:09 2024 +0100 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Wed Jan 17 17:01:09 2024 +0100 |
tree | 66a4e48134905afab742ad253a26dc9b2f219275 | |
parent | fd0d01b1f8875829cee618a4769698b2962a2fe2 [diff] |
Adapt to enabling the MutableGuiceModule errorprone pattern in Gerrit core This adapts to I35f1a7855eb1a2f09b2ba8f9de475ff1f51a7924 in Gerrit core. Change-Id: I91b8ef54c4d840567541bb259c7775b019aec8e2
diff --git a/src/main/java/com/googlesource/gerrit/plugins/readonly/SshModule.java b/src/main/java/com/googlesource/gerrit/plugins/readonly/SshModule.java index 357c2f7..c8cd06d 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/readonly/SshModule.java +++ b/src/main/java/com/googlesource/gerrit/plugins/readonly/SshModule.java
@@ -14,11 +14,18 @@ package com.googlesource.gerrit.plugins.readonly; +import com.google.gerrit.extensions.annotations.PluginName; import com.google.gerrit.extensions.registration.DynamicItem; import com.google.gerrit.sshd.PluginCommandModule; import com.google.gerrit.sshd.SshCreateCommandInterceptor; +import com.google.inject.Inject; public class SshModule extends PluginCommandModule { + @Inject + SshModule(@PluginName String pluginName) { + super(pluginName); + } + @Override protected void configureCommands() { DynamicItem.bind(binder(), SshCreateCommandInterceptor.class)