[ 
https://issues.apache.org/jira/browse/ISIS-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370781#comment-17370781
 ] 

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

Commit 7575753dfcb7a95ae7641c61dc83e401d6c7aede in isis's branch 
refs/heads/ISIS-2734 from Daniel Keir Haywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=7575753 ]

Merge pull request #641 from apache/ISIS-2773

ISIS-2773: adds FixtureScript#optionalParam()

> Extend FixtureScript API to allow checking of optional params
> -------------------------------------------------------------
>
>                 Key: ISIS-2773
>                 URL: https://issues.apache.org/jira/browse/ISIS-2773
>             Project: Isis
>          Issue Type: Improvement
>          Components: Isis Core
>    Affects Versions: 2.0.0-M5
>            Reporter: Daniel Keir Haywood
>            Assignee: Daniel Keir Haywood
>            Priority: Minor
>             Fix For: 2.0.0-M6
>
>
> refactor this hack:
> {code:java}
> public class FixtureScript {
>   ...
>   protected <T> void optionalParam(
>     final String parameterName, final ExecutionContext ec, final Class<T> 
> cls) {
>     try {
>         checkParam(parameterName, ec, cls);
>     } catch (IllegalArgumentException e) {
>         // Do nothing
>     }
>   }
> }
>  {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to