Rename Mono#otherwise[Empty] to switch[onError/IfEmpty]

Issue: SPR-15318
This commit is contained in:
Sebastien Deleuze
2017-04-13 15:30:21 +02:00
parent cec36fe784
commit e3fae2716e
19 changed files with 23 additions and 23 deletions

View File

@@ -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);
}
}
----