Merge "Bind WebUiPlugins in Module instead of HttpModule"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cookbook/HelloWorldServlet.java b/src/main/java/com/googlesource/gerrit/plugins/cookbook/HelloWorldServlet.java
index b1493c2..e1f31a2 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cookbook/HelloWorldServlet.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cookbook/HelloWorldServlet.java
@@ -36,7 +36,7 @@
   private static final Logger log = LoggerFactory.getLogger(HelloWorldServlet.class);
 
   @Inject
-  public HelloWorldServlet(@PluginName String pluginName,
+  HelloWorldServlet(@PluginName String pluginName,
       @PluginCanonicalWebUrl String url) {
     log.info(String.format("Cookbook Plugin '%s' at url %s", pluginName, url));
   }
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cookbook/Module.java b/src/main/java/com/googlesource/gerrit/plugins/cookbook/Module.java
index 1b54a09..d3f3d3b 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cookbook/Module.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cookbook/Module.java
@@ -76,8 +76,6 @@
         .to(CommitValidator.class);
     DynamicSet.bind(binder(), NewProjectCreatedListener.class)
         .to(ProjectCreatedListener.class);
-    DynamicSet.bind(binder(), CommitValidationListener.class)
-        .to(CommitValidator.class);
     configurePluginParameters();
 
     bind(ChangeOperatorFactory.class)
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java b/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java
index 516ff17..7f1f6e8 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java
@@ -27,7 +27,7 @@
   private String name = "world";
 
   @Option(name = "--french", usage = "output in French?")
-  private boolean french = false;
+  private boolean french;
 
   @Override
   public void run() {