Adapt to latest master
- Rename reviewdb package to entities
- Adapt to rename of ProjectNameKeySerializer to ProjectNameKeyAdapter
Change-Id: I9f5445aacad8fa2ecac91fec8b10d32dc74eeb8c
diff --git a/src/main/java/com/googlesource/gerrit/plugins/rabbitmq/message/GsonProvider.java b/src/main/java/com/googlesource/gerrit/plugins/rabbitmq/message/GsonProvider.java
index 1b7c975..8b390d7 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/rabbitmq/message/GsonProvider.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/rabbitmq/message/GsonProvider.java
@@ -15,8 +15,8 @@
package com.googlesource.gerrit.plugins.rabbitmq.message;
import com.google.common.base.Supplier;
-import com.google.gerrit.reviewdb.client.Project;
-import com.google.gerrit.server.events.ProjectNameKeySerializer;
+import com.google.gerrit.entities.Project;
+import com.google.gerrit.server.events.ProjectNameKeyAdapter;
import com.google.gerrit.server.events.SupplierSerializer;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -28,7 +28,7 @@
public Gson get() {
return new GsonBuilder()
.registerTypeAdapter(Supplier.class, new SupplierSerializer())
- .registerTypeAdapter(Project.NameKey.class, new ProjectNameKeySerializer())
+ .registerTypeAdapter(Project.NameKey.class, new ProjectNameKeyAdapter())
.create();
}
}