diff --git a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/Daemon.java b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/Daemon.java index 612f0f991b..7ee3cde5bd 100644 --- a/gerrit-pgm/src/main/java/com/google/gerrit/pgm/Daemon.java +++ b/gerrit-pgm/src/main/java/com/google/gerrit/pgm/Daemon.java @@ -20,7 +20,6 @@ import static java.nio.charset.StandardCharsets.UTF_8; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.MoreObjects; import com.google.gerrit.common.EventBroker; -import com.google.gerrit.common.StreamEventsApiListener; import com.google.gerrit.gpg.GpgModule; import com.google.gerrit.httpd.AllRequestFilter; import com.google.gerrit.httpd.GerritOptions; @@ -59,6 +58,7 @@ import com.google.gerrit.server.config.DownloadConfig; import com.google.gerrit.server.config.GerritGlobalModule; import com.google.gerrit.server.config.GerritServerConfig; import com.google.gerrit.server.config.RestCacheAdminModule; +import com.google.gerrit.server.events.StreamEventsApiListener; import com.google.gerrit.server.git.GarbageCollectionModule; import com.google.gerrit.server.git.ReceiveCommitsExecutorModule; import com.google.gerrit.server.git.SearchingChangeCacheImpl; diff --git a/gerrit-server/src/main/java/com/google/gerrit/common/StreamEventsApiListener.java b/gerrit-server/src/main/java/com/google/gerrit/server/events/StreamEventsApiListener.java similarity index 95% rename from gerrit-server/src/main/java/com/google/gerrit/common/StreamEventsApiListener.java rename to gerrit-server/src/main/java/com/google/gerrit/server/events/StreamEventsApiListener.java index 788147fe64..b6c2e98b5c 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/common/StreamEventsApiListener.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/events/StreamEventsApiListener.java @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -package com.google.gerrit.common; +package com.google.gerrit.server.events; import com.google.common.base.Supplier; import com.google.common.base.Suppliers; import com.google.common.collect.Sets; +import com.google.gerrit.common.EventDispatcher; import com.google.gerrit.common.data.LabelType; import com.google.gerrit.common.data.LabelTypes; import com.google.gerrit.extensions.common.AccountInfo; @@ -49,19 +50,6 @@ import com.google.gerrit.server.data.ApprovalAttribute; import com.google.gerrit.server.data.ChangeAttribute; import com.google.gerrit.server.data.PatchSetAttribute; import com.google.gerrit.server.data.RefUpdateAttribute; -import com.google.gerrit.server.events.ChangeAbandonedEvent; -import com.google.gerrit.server.events.ChangeMergedEvent; -import com.google.gerrit.server.events.ChangeRestoredEvent; -import com.google.gerrit.server.events.CommentAddedEvent; -import com.google.gerrit.server.events.DraftPublishedEvent; -import com.google.gerrit.server.events.EventFactory; -import com.google.gerrit.server.events.HashtagsChangedEvent; -import com.google.gerrit.server.events.PatchSetCreatedEvent; -import com.google.gerrit.server.events.ProjectCreatedEvent; -import com.google.gerrit.server.events.RefUpdatedEvent; -import com.google.gerrit.server.events.ReviewerAddedEvent; -import com.google.gerrit.server.events.ReviewerDeletedEvent; -import com.google.gerrit.server.events.TopicChangedEvent; import com.google.gerrit.server.git.GitRepositoryManager; import com.google.gerrit.server.notedb.ChangeNotes; import com.google.gerrit.server.project.NoSuchChangeException; diff --git a/gerrit-war/src/main/java/com/google/gerrit/httpd/WebAppInitializer.java b/gerrit-war/src/main/java/com/google/gerrit/httpd/WebAppInitializer.java index cf80df74ac..3f562b9877 100644 --- a/gerrit-war/src/main/java/com/google/gerrit/httpd/WebAppInitializer.java +++ b/gerrit-war/src/main/java/com/google/gerrit/httpd/WebAppInitializer.java @@ -19,7 +19,6 @@ import static com.google.inject.Stage.PRODUCTION; import com.google.common.base.Splitter; import com.google.gerrit.common.EventBroker; -import com.google.gerrit.common.StreamEventsApiListener; import com.google.gerrit.gpg.GpgModule; import com.google.gerrit.httpd.auth.oauth.OAuthModule; import com.google.gerrit.httpd.auth.openid.OpenIdModule; @@ -42,6 +41,7 @@ import com.google.gerrit.server.config.GerritServerConfig; import com.google.gerrit.server.config.GerritServerConfigModule; import com.google.gerrit.server.config.RestCacheAdminModule; import com.google.gerrit.server.config.SitePath; +import com.google.gerrit.server.events.StreamEventsApiListener; import com.google.gerrit.server.git.GarbageCollectionModule; import com.google.gerrit.server.git.GitRepositoryManagerModule; import com.google.gerrit.server.git.ReceiveCommitsExecutorModule;