commit | 342664f37e2b1a87571f6048e291ddf623cd93e3 | [log] [tgz] |
---|---|---|
author | Marco Miller <marco.miller@ericsson.com> | Fri Sep 06 19:35:40 2019 -0400 |
committer | Marco Miller <marco.miller@ericsson.com> | Fri Sep 06 19:35:41 2019 -0400 |
tree | 9a9cef1390934b72bdcb195737d64a48a95d700f | |
parent | 7b445ca792527b59dc88caeaa4ca5670da236397 [diff] |
ReadOnlyEndpoint: Adapt to apply return type change Change-Id: I689fd2849be0c4af437500bea324878c753b68e8
diff --git a/src/main/java/com/googlesource/gerrit/plugins/readonly/ReadOnlyEndpoint.java b/src/main/java/com/googlesource/gerrit/plugins/readonly/ReadOnlyEndpoint.java index 2482cab..a9e1c36 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/readonly/ReadOnlyEndpoint.java +++ b/src/main/java/com/googlesource/gerrit/plugins/readonly/ReadOnlyEndpoint.java
@@ -40,8 +40,8 @@ } @Override - public String apply(ConfigResource resource) { - return state.isReadOnly() ? "on" : "off"; + public Response apply(ConfigResource resource) { + return Response.ok(state.isReadOnly() ? "on" : "off"); } }