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

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

Commit e9ee73666ea94f5cca06977e8a288f2a9a7a222a in isis's branch 
refs/heads/master from danhaywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=e9ee736 ]

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