Rename Mono#otherwise[Empty] to switch[onError/IfEmpty]
Issue: SPR-15318
This commit is contained in:
@@ -95,7 +95,7 @@ public class PersonHandler {
|
||||
Mono<Person> personMono = this.repository.getPerson(personId);
|
||||
return personMono
|
||||
.then(person -> ServerResponse.ok().contentType(APPLICATION_JSON).body(fromObject(person)))
|
||||
.otherwiseIfEmpty(notFound);
|
||||
.switchIfEmpty(notFound);
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user