[
https://issues.apache.org/jira/browse/WICKET-6189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15347898#comment-15347898
]
ASF subversion and git services commented on WICKET-6189:
---------------------------------------------------------
Commit fc92b5d5d892444106c3b47489e1b06a908e70dc in wicket's branch
refs/heads/master from [~svenmeier]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=fc92b5d ]
WICKET-6189 RequestCycle.find() returns Optional now
> Return Optional<T> from RequestCycle.find(Class<T>)
> ---------------------------------------------------
>
> Key: WICKET-6189
> URL: https://issues.apache.org/jira/browse/WICKET-6189
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 8.0.0-M1
> Reporter: Sven Meier
> Assignee: Sven Meier
> Priority: Minor
>
> RequestCycle.find(Class<T>) is mostly used to get the current
> AjaxRequestTarget.
> Since the returned reference might be null (in case of a non-Ajax request),
> it would be better to return an Optional<AjaxRequestHandler>.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)