19441: Use Optional instead of Option in http core javadsl
This commit is contained in:
parent
7a39063f2e
commit
57c1dfde8a
54 changed files with 302 additions and 248 deletions
|
|
@ -202,7 +202,7 @@ public class HttpServerExampleDocTest {
|
|||
.withEntity(ContentTypes.TEXT_HTML_UTF8,
|
||||
"<html><body>Hello world!</body></html>");
|
||||
else if (uri.path().equals("/hello")) {
|
||||
String name = Util.getOrElse(uri.query().get("name"), "Mister X");
|
||||
String name = uri.query().get("name").orElse("Mister X");
|
||||
|
||||
return
|
||||
HttpResponse.create()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue