You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2020/09/08 18:21:00 UTC
[jira] [Created] (SOLR-14846) Avoid use of
Optional.ofNullable.orElse in the same line
Mike Drob created SOLR-14846:
--------------------------------
Summary: Avoid use of Optional.ofNullable.orElse in the same line
Key: SOLR-14846
URL: https://issues.apache.org/jira/browse/SOLR-14846
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Mike Drob
Assignee: Mike Drob
Optional was meant to be used in public APIs to convey to the caller that they really need to null-check, not as an internal class to avoid doing our own null checks. There are better methods in {{Objects}} for that if we want them.
See also Brian Goetz at JavaOne - https://youtu.be/MFzlgAuanU0?t=2719
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org