Merge branch 'stable-2.16' into stable-3.0
* stable-2.16: Redirect GWT links to project dashboard to Polygerit Doc: Make command for configuring bazel copyable Update git submodules ChangeEdits: Don't wrap Response.none() in Response.ok() Document how to mitigate the issue of broken Eclipse project on MacOS Change-Id: I83f3a5dca383ba8d8042b7f679481ab091f45e6c
This commit is contained in:
@@ -305,7 +305,7 @@ public class ChangeEdits implements ChildCollection<ChangeResource, ChangeEditRe
|
||||
EditMessage.Input editCommitMessageInput = new EditMessage.Input();
|
||||
editCommitMessageInput.message =
|
||||
new String(ByteStreams.toByteArray(newContent.getInputStream()), UTF_8);
|
||||
return Response.ok(editMessage.apply(rsrc, editCommitMessageInput));
|
||||
return editMessage.apply(rsrc, editCommitMessageInput);
|
||||
}
|
||||
if (Strings.isNullOrEmpty(path) || path.charAt(0) == '/') {
|
||||
throw new ResourceConflictException("Invalid path: " + path);
|
||||
@@ -446,7 +446,7 @@ public class ChangeEdits implements ChildCollection<ChangeResource, ChangeEditRe
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object apply(ChangeResource rsrc, Input input)
|
||||
public Response<?> apply(ChangeResource rsrc, Input input)
|
||||
throws AuthException, IOException, BadRequestException, ResourceConflictException,
|
||||
PermissionBackendException {
|
||||
if (input == null || Strings.isNullOrEmpty(input.message)) {
|
||||
|
||||
Reference in New Issue
Block a user