You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/10/17 05:37:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16652984#comment-16652984 ] 

ASF subversion and git services commented on ISIS-2007:
-------------------------------------------------------

Commit 72765aa9413389ac338a88a97f6f79bc50dfd84a in isis's branch refs/heads/v2 from danhaywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=72765aa ]

ISIS-2007: uses Objects.requireNonNull(Object, Supplier<String>) in all cases... actually just 3


> 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)