File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments