Skip to content

Commit

Permalink
Use java Multi-line String
Browse files Browse the repository at this point in the history
  • Loading branch information
arey committed Oct 19, 2024
1 parent f6ae049 commit 2e62eb0
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,24 @@ public Function<VetRequest, VetResponse> listVets(AIDataProvider petclinicAiProv
}

@Bean
@Description("Add a pet with the specified petTypeId, " + "to an owner identified by the ownerId. "
+ "The allowed Pet types IDs are only: " + "1 - cat" + "2 - dog" + "3 - lizard" + "4 - snake" + "5 - bird"
+ "6 - hamster")
@Description("""
Add a pet with the specified petTypeId, to an owner identified by the ownerId. \
The allowed Pet types IDs are only: \
1 - cat \
2 - dog \
3 - lizard \
4 - snake \
5 - bird \
6 - hamster""")
public Function<AddPetRequest, AddedPetResponse> addPetToOwner(AIDataProvider petclinicAiProvider) {
return petclinicAiProvider::addPetToOwner;
}

@Bean
@Description("Add a new pet owner to the pet clinic. "
+ "The Owner must include a first name and a last name as two separate words, "
+ "plus an address and a 10-digit phone number")
@Description("""
Add a new pet owner to the pet clinic. \
The Owner must include a first name and a last name as two separate words, \
plus an address and a 10-digit phone number""")
public Function<OwnerRequest, OwnerResponse> addOwnerToPetclinic(AIDataProvider petclinicAiDataProvider) {
return petclinicAiDataProvider::addOwnerToPetclinic;
}
Expand Down

0 comments on commit 2e62eb0

Please sign in to comment.