Fix typo in Java example for handler class

Closes gh-25302
This commit is contained in:
DK Lee
2020-06-23 16:46:14 +02:00
committed by Sam Brannen
parent f0b8e638ad
commit 6419b18bee
+1 -1
View File
@@ -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();