Merge branch 'stable-3.0'
* stable-3.0:
Upgrade bazlets to latest stable-3.0
Upgrade bazlets to latest stable-2.16
Change-Id: Ic197d48d5de16e700e4862682e000fc21476e3ec
diff --git a/WORKSPACE b/WORKSPACE
index 25e7daa..d5f1477 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -3,7 +3,7 @@
load("//:bazlets.bzl", "load_bazlets")
load_bazlets(
- commit = "4909dd878ded009edc140319246a2e0681763743",
+ commit = "f30a992da9fc855dce819875afb59f9dd6f860cd",
#local_path = "/home/<user>/projects/bazlets",
)
diff --git a/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java b/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
index c0181a5..85cb1b1 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
@@ -19,6 +19,7 @@
import com.google.common.base.Strings;
import com.google.gerrit.extensions.annotations.PluginData;
import com.google.gerrit.extensions.annotations.PluginName;
+import com.google.gerrit.extensions.restapi.Response;
import com.google.gerrit.extensions.restapi.RestReadView;
import com.google.gerrit.server.config.ConfigResource;
import com.google.gerrit.server.config.SitePaths;
@@ -61,7 +62,7 @@
}
@Override
- public MessageOfTheDayInfo apply(ConfigResource rsrc) {
+ public Response<MessageOfTheDayInfo> apply(ConfigResource rsrc) {
MessageOfTheDayInfo motd = new MessageOfTheDayInfo();
cfg = new FileBasedConfig(cfgFile, FS.DETECTED);
try {
@@ -105,7 +106,7 @@
motd.redisplay = getRedisplay();
- return motd;
+ return Response.ok(motd);
}
private Date getRedisplay() {