mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 01:05:48 +00:00
running java-format
This commit is contained in:
parent
51a1ea2e22
commit
86fa0ee8e0
1 changed files with 0 additions and 1 deletions
|
@ -57,7 +57,6 @@ class PetController {
|
||||||
@ModelAttribute("owner")
|
@ModelAttribute("owner")
|
||||||
public Owner findOwner(@PathVariable("ownerId") int ownerId) {
|
public Owner findOwner(@PathVariable("ownerId") int ownerId) {
|
||||||
|
|
||||||
|
|
||||||
Owner owner = this.owners.findById(ownerId);
|
Owner owner = this.owners.findById(ownerId);
|
||||||
if (owner == null) {
|
if (owner == null) {
|
||||||
throw new IllegalArgumentException("Owner ID not found: " + ownerId);
|
throw new IllegalArgumentException("Owner ID not found: " + ownerId);
|
||||||
|
|
Loading…
Reference in a new issue