Skip to content

Commit

Permalink
Fix code example for JSON serialisation in rest guide
Browse files Browse the repository at this point in the history
(cherry picked from commit 656b38b)
  • Loading branch information
jedla97 authored and gsmet committed Aug 14, 2024
1 parent cd531ec commit 3ce57ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/main/asciidoc/resteasy-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1302,10 +1302,11 @@ public class Person {
@SecureField(rolesAllowed = "${role:admin}") <1>
private String address;
public Person(Long id, String first, String last) {
public Person(Long id, String first, String last, String address) {
this.id = id;
this.first = first;
this.last = last;
this.address = address;
}
public Long getId() {
Expand Down Expand Up @@ -1348,7 +1349,7 @@ import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.Response;
@Path("person")
public class Person {
public class PersonResource {
@Path("{id}")
@GET
Expand Down

0 comments on commit 3ce57ef

Please sign in to comment.