commit | ee9eb5b59fbce645cf5c24b927a60f70d1014a96 | [log] [tgz] |
---|---|---|
author | Jacek Centkowski <jcentkowski@collab.net> | Tue Sep 19 16:24:30 2017 +0200 |
committer | Jacek Centkowski <jcentkowski@collab.net> | Tue Sep 19 16:24:55 2017 +0200 |
tree | b1f9338ff13d025879906ca0fc9a41081f2c117b | |
parent | 49d4ab881262cad10d684eee8af9350371df1f11 [diff] |
Remove binding to singleton as Configuration has already Singleton scope Change-Id: Ia43162be3ea477e10401c914f424949de4e18d6e Signed-off-by: Jacek Centkowski <jcentkowski@collab.net>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/webhooks/Module.java b/src/main/java/com/googlesource/gerrit/plugins/webhooks/Module.java index 71336e9..f59df7c 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/webhooks/Module.java +++ b/src/main/java/com/googlesource/gerrit/plugins/webhooks/Module.java
@@ -28,7 +28,6 @@ bind(ScheduledExecutorService.class) .annotatedWith(WebHooksExecutor.class) .toProvider(ExecutorProvider.class); - bind(Configuration.class).in(Scopes.SINGLETON); bind(CloseableHttpClient.class).toProvider(HttpClientProvider.class).in(Scopes.SINGLETON); factory(PostTask.Factory.class); DynamicSet.bind(binder(), EventListener.class).to(EventHandler.class);