[ 
https://issues.apache.org/jira/browse/WICKET-4329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov resolved WICKET-4329.
-------------------------------------

    Resolution: Fixed
      Assignee: Martin Grigorov
    
> Optimize consequent usages of MarkupContainer# hasAssociatedMarkup() and 
> #getAssociatedMapkup()
> -----------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4329
>                 URL: https://issues.apache.org/jira/browse/WICKET-4329
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5.3
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5.4, 6.0.0
>
>
> There are few places where #getAssociatedMarkup() is called immediately after 
> #hasAssociatedMarkup().
> Since #hasAssociatedMapkup() just does: return #getAssociatedMarkup() != 
> null, it can be optimized by just calling #getAssociatedMarkup() and check 
> for null. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to