summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2020-02-04 22:57:14 +0100
committerDavid Ostrovsky <david@ostrovsky.org>2020-02-04 22:58:29 +0100
commit5edf70ec116809366f401b11e6d2f595aafe55d3 (patch)
treebbc8278d761d42140f740b0d97f941160bb12575
parentb88351bc938cad7e4b9548e7141bbc4e3be09603 (diff)
Fix method name to register custom event types in plugins
-rw-r--r--Documentation/dev-plugins.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt
index 64cae2d5a6..a80b4b55f3 100644
--- a/Documentation/dev-plugins.txt
+++ b/Documentation/dev-plugins.txt
@@ -474,9 +474,9 @@ class MyPlugin {
----
Plugins which define new Events should register them via the
-`com.google.gerrit.server.events.EventTypes.registerClass()`
-method. This will make the EventType known to the system.
-Deserializing events with the
+`com.google.gerrit.server.events.EventTypes.register()` method.
+This will make the EventType known to the system. Deserializing
+events with the
`com.google.gerrit.server.events.EventDeserializer` class requires
that the event be registered in EventTypes.