| Chunk |
|---|
| Conflicting content |
|---|
}
// Create hypermedia representation for this resource
<<<<<<< HEAD
HateoasResponseBuilder builder = HateoasResponse.status(status);
if (getHateoasContext() != null) {
buildLinks(builder, id, map);
} else {
// Add links without the hateoas context
RESTResource entity = (RESTResource) newResource.getEntity();
entity.setLinks(getLinks(entity));
}
=======
ResponseBuilder builder = Response.status(status);
/*
* Add links
*/
RESTResource entity = (RESTResource) newResource.getEntity();
entity.setLinks(getLinks(null, entity));
>>>>>>> 3109cd6a0bc57d1ea214624b1b8cd49776364d61
builder.entity(newResource);
return HeaderHelper.allowHeader(builder, getInteractions()).build(); |
| Solution content |
|---|
}
// Create hypermedia representation for this resource
ResponseBuilder builder = Response.status(status);
/*
* Add links
*/
RESTResource entity = (RESTResource) newResource.getEntity();
entity.setLinks(getLinks(null, entity));
builder.entity(newResource);
return HeaderHelper.allowHeader(builder, getInteractions()).build(); |
| File |
|---|
| AbstractHTTPResourceInteractionModel.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Cast expression |
| Comment |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}; CommandController cc = r.getCommandController(); ResourcePostCommand rpc = mock(ResourcePostCommand.class); <<<<<<< HEAD NestedObject no = mock(NestedObject.class); EntityResource |
| Solution content |
|---|
}; CommandController cc = r.getCommandController(); ResourcePostCommand rpc = mock(ResourcePostCommand.class); NestedObject no = mock(NestedObject.class); EntityResource |
| File |
|---|
| TestAbstractHTTPResourceInteractionModel.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}; CommandController cc = r.getCommandController(); ResourcePostCommand rpc = mock(ResourcePostCommand.class); <<<<<<< HEAD NestedObject no = mock(NestedObject.class); EntityResource |
| Solution content |
|---|
}; CommandController cc = r.getCommandController(); ResourcePostCommand rpc = mock(ResourcePostCommand.class); NestedObject no = mock(NestedObject.class); EntityResource |
| File |
|---|
| TestAbstractHTTPResourceInteractionModel.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |