Discussion:
[jira] [Created] (ISIS-2007) Use Objects.requireNonNull(Obj, Supplier<String>) to avoid masking errors
Dan Haywood (JIRA)
2018-10-17 04:06:00 UTC
Permalink
Dan Haywood created ISIS-2007:
---------------------------------

Summary: 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
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)
Dan Haywood (JIRA)
2018-10-17 04:07:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/ISIS-2007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Haywood reassigned ISIS-2007:
---------------------------------

Assignee: Dan Haywood
Post by Dan Haywood (JIRA)
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)
ASF subversion and git services (JIRA)
2018-10-17 05:37:00 UTC
Permalink
[ 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
Post by Dan Haywood (JIRA)
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)
Dan Haywood (JIRA)
2018-10-19 13:03:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/ISIS-2007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Haywood closed ISIS-2007.
-----------------------------
Resolution: Fixed
Post by Dan Haywood (JIRA)
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)

Loading...