commit | 1ca7f53f8e55bca0167ec7967c93408241959cf6 | [log] [tgz] |
---|---|---|
author | Thomas Dräbing <thomas.draebing@sap.com> | Tue Jan 09 13:05:49 2024 +0100 |
committer | Thomas Dräbing <thomas.draebing@sap.com> | Tue Jan 09 13:05:49 2024 +0100 |
tree | 8ee8932dae14a69fefb014b20eb110c5ebb7608d | |
parent | 0d0a356efea57a6a4a21735e50ad40b5f1409ab2 [diff] |
Enable MutableGuiceModule errorprone pattern and fix/suppress issues See https://errorprone.info/bugpattern/MutableGuiceModule Change-Id: Ib3b10b53fbb1bb06260baadfef86ca57ffa166c3
diff --git a/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java b/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java index 4dcae20..86a3000 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java +++ b/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java
@@ -14,11 +14,18 @@ package com.googlesource.gerrit.plugins.renameproject; +import com.google.gerrit.extensions.annotations.PluginName; import com.google.gerrit.sshd.SingleCommandPluginModule; import com.google.inject.binder.LinkedBindingBuilder; +import com.google.inject.Inject; import org.apache.sshd.server.command.Command; public class SshModule extends SingleCommandPluginModule { + @Inject + SshModule(@PluginName String pluginName) { + super(pluginName); + } + @Override protected void configure(LinkedBindingBuilder<Command> bind) { bind.to(RenameCommand.class);