From e3c8bb9b86e0089761bce1eb78e0e76d2183a7dc Mon Sep 17 00:00:00 2001 From: Yuxuan 'fishy' Wang Date: Wed, 10 Feb 2016 15:50:32 -0800 Subject: [PATCH] Fix EventListener hook We are only allowed to call DynamicSet.bind *after* DynamicSet.setOf. Change-Id: Icff501c2fd5ac9696467d378d81ecd67f39dc0f3 --- .../com/google/gerrit/server/config/GerritGlobalModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/config/GerritGlobalModule.java b/gerrit-server/src/main/java/com/google/gerrit/server/config/GerritGlobalModule.java index 01f7f822c1..18e492752a 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/config/GerritGlobalModule.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/config/GerritGlobalModule.java @@ -277,8 +277,8 @@ public class GerritGlobalModule extends FactoryModule { DynamicSet.bind(binder(), GitReferenceUpdatedListener.class).to(ReindexAfterUpdate.class); DynamicSet.bind(binder(), GitReferenceUpdatedListener.class) .to(ProjectConfigEntry.UpdateChecker.class); - DynamicSet.bind(binder(), EventListener.class).to(EventsMetrics.class); DynamicSet.setOf(binder(), EventListener.class); + DynamicSet.bind(binder(), EventListener.class).to(EventsMetrics.class); DynamicSet.setOf(binder(), CommitValidationListener.class); DynamicSet.setOf(binder(), RefOperationValidationListener.class); DynamicSet.setOf(binder(), MergeValidationListener.class);