Browse Source

Fix typo in Java example for handler class

Closes gh-25302
pull/27093/head
DK Lee 5 years ago committed by Sam Brannen
parent
commit
6419b18bee
  1. 2
      src/docs/asciidoc/web/webmvc-functional.adoc

2
src/docs/asciidoc/web/webmvc-functional.adoc

@ -254,7 +254,7 @@ public class PersonHandler { @@ -254,7 +254,7 @@ public class PersonHandler {
int personId = Integer.parseInt(request.pathVariable("id"));
Person person = repository.getPerson(personId);
if (person != null) {
return ok().contentType(APPLICATION_JSON).body(person))
return ok().contentType(APPLICATION_JSON).body(person);
}
else {
return ServerResponse.notFound().build();

Loading…
Cancel
Save