flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-14153) Unrequired cast of calHeader in DateChooser
Date Tue, 07 May 2013 09:07:15 GMT

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

Justin Mclean resolved FLEX-14153.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.10.0

fixed and checked into development branch
                
> Unrequired cast of calHeader in DateChooser
> -------------------------------------------
>
>                 Key: FLEX-14153
>                 URL: https://issues.apache.org/jira/browse/FLEX-14153
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: mx: DateChooser
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>             Fix For: Apache Flex 4.10.0
>
>
> line 1873 of DateChooser casts calHeader to UIComponent.
> calHeader is declared with the type UIComponent, it's created as a UIComponent and therefore
this cast is redundant.
> /**
>  *  @private
>  */
> mx_internal var calHeader:UIComponent;
> if (!calHeader)
> {
>         calHeader = new UIComponent();
>         addChild(calHeader);
>        UIComponent(calHeader).styleName = this;       <-------------- cast is rundundant
>  }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message