Fix ErrorProne issues for JavaLangClash bug pattern This requires renaming Module classes that clash with java.lang.Module. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I9dfb6f2d5e4b07d6ce346bea7aa8e6370bdad678
diff --git a/BUILD b/BUILD index cf90561..95eda17 100644 --- a/BUILD +++ b/BUILD
@@ -5,7 +5,7 @@ srcs = glob(["src/main/java/**/*.java"]), manifest_entries = [ "Gerrit-PluginName: download-commands", - "Gerrit-Module: com.googlesource.gerrit.plugins.download.Module", + "Gerrit-Module: com.googlesource.gerrit.plugins.download.PluginModule", ], resources = glob(["src/main/resources/**/*"]), )
diff --git a/src/main/java/com/googlesource/gerrit/plugins/download/Module.java b/src/main/java/com/googlesource/gerrit/plugins/download/PluginModule.java similarity index 95% rename from src/main/java/com/googlesource/gerrit/plugins/download/Module.java rename to src/main/java/com/googlesource/gerrit/plugins/download/PluginModule.java index 78d1f36..abe828b 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/download/Module.java +++ b/src/main/java/com/googlesource/gerrit/plugins/download/PluginModule.java
@@ -19,7 +19,7 @@ import com.googlesource.gerrit.plugins.download.command.DownloadCommandsModule; import com.googlesource.gerrit.plugins.download.scheme.SchemeModule; -class Module extends AbstractModule { +class PluginModule extends AbstractModule { @Override protected void configure() { install(new CloneCommandsModule());