Merge branch 'stable-3.0'
* stable-3.0:
Bump Bazel version to 2.2.0
Change-Id: Ic2fd46d305bda7be7c9b3da74486d8b3ad0ae2f9
diff --git a/WORKSPACE b/WORKSPACE
index 5ac18dc..d5f1477 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -3,7 +3,7 @@
load("//:bazlets.bzl", "load_bazlets")
load_bazlets(
- commit = "96f691ebbf4ef1c46b798e871ed5acd9d844651c",
+ 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() {