Skip to content

Commit f458896

Browse files
committed
readme - cosmetics
1 parent 8660b72 commit f458896

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ import io.amplicode.rautils.patch.ObjectPatcher;
4949
private ObjectPatcher objectPatcher;
5050

5151
@PatchMapping("/{id}")
52-
public ResponseEntity<FooDto> patch(@PathVariable Integer id, @RequestBody JsonNode fooDtoPatch) {
52+
public ResponseEntity<FooDto> patch(@PathVariable Integer id,
53+
@RequestBody JsonNode fooDtoPatch) {
5354
FooDto fooDto; // load current state of the entity
5455
FooDto patchedDto = objectPatcher.patch(fooDto, fooDtoPatch);
5556

@@ -66,7 +67,8 @@ import com.fasterxml.jackson.databind.ObjectMapper;
6667
private ObjectMapper objectMapper;
6768

6869
@PatchMapping("/{id}")
69-
public ResponseEntity<FooDto> patch(@PathVariable Integer id, @RequestBody JsonNode fooDtoPatch) throws IOException {
70+
public ResponseEntity<FooDto> patch(@PathVariable Integer id,
71+
@RequestBody JsonNode fooDtoPatch) throws IOException {
7072
FooDto fooDto; // load current state of the entity
7173
objectMapper.readerForUpdating(fooDto).readValue(fooDtoPatch);
7274

0 commit comments

Comments
 (0)