[JIRA] (IDP-2069) Null Handling Task
Rod Widdowson (Jira)
jira at shibboleth.atlassian.net
Tue Feb 28 09:21:15 UTC 2023
Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) *commented* on IDP-2069 ( https://shibboleth.atlassian.net/browse/IDP-2069?atlOrigin=eyJpIjoiZjEyODVjOWZiOTZlNGUxM2I4N2VmNjVjMDJmODQxYmQiLCJwIjoiaiJ9 )
Re: Null Handling Task ( https://shibboleth.atlassian.net/browse/IDP-2069?atlOrigin=eyJpIjoiZjEyODVjOWZiOTZlNGUxM2I4N2VmNjVjMDJmODQxYmQiLCJwIjoiaiJ9 )
In the interests of removing yellow from projects, I am allowing myself to supress null ands type casting warnings in the tests.
A trick for tests which test that “supplying null to a setter throws” is:
private Object nullObject;
...
// replace function.setConsentKeyLookupStrategy(null);
// with
@SuppressWarnings({ "null", "unchecked" })
...
function.setConsentKeyLookupStrategy((Function<ProfileRequestContext, String>) nullObject);
( https://shibboleth.atlassian.net/browse/IDP-2069#add-comment?atlOrigin=eyJpIjoiZjEyODVjOWZiOTZlNGUxM2I4N2VmNjVjMDJmODQxYmQiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-2069#add-comment?atlOrigin=eyJpIjoiZjEyODVjOWZiOTZlNGUxM2I4N2VmNjVjMDJmODQxYmQiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:65be9f2 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20230228/228532ec/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-be3cc331-a786-468d-8af2-7530de9fb966
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230228/228532ec/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-9584a343-b141-4801-b098-c6a3c619fdf4
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230228/228532ec/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-58189fbd-2d25-4f65-872b-e8ad7d23b271
Type: image/png
Size: 484 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230228/228532ec/attachment-0005.png>
More information about the commits
mailing list