You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2018/10/19 13:03:00 UTC
[jira] [Closed] (ISIS-2007) Use Objects.requireNonNull(Obj,
Supplier) to avoid masking errors
[ https://issues.apache.org/jira/browse/ISIS-2007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Haywood closed ISIS-2007.
-----------------------------
Resolution: Fixed
> Use Objects.requireNonNull(Obj, Supplier<String>) to avoid masking errors
> -------------------------------------------------------------------------
>
> Key: ISIS-2007
> URL: https://issues.apache.org/jira/browse/ISIS-2007
> Project: Isis
> Issue Type: Improvement
> Affects Versions: 2.0.0-M1
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Priority: Major
> Fix For: 2.0.0-M2
>
>
> If use Objects.requireNonNull(Object, String), then this will evaluate String eagerly. That might itself cause an exception, hiding if the object is null.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)