Daniel Keir Haywood created ISIS-2773:
-----------------------------------------
Summary: 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
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)