How to correct the objection about dymanic Object type by FlexPMD?

Posted by sanjoy roy on Stack Overflow See other posts from Stack Overflow or by sanjoy roy
Published on 2011-11-21T09:46:41Z Indexed on 2011/11/21 9:50 UTC
Read the original article Hit count: 232

Filed under:
|

I have the code in one of my flex file used as labelFunction in a DataGrid. When I run the FlexPMD to do the code review , it generates objection about the dynamic type object used in method signature "public function getFormattedCreatedTime(item:Object, column:DataGridColumn):String", it suggests to use strongly type object. Does anyone how to rectify it?


      public function getFormattedCreatedTime(item:Object, column:DataGridColumn):String { 
    var value:Date=item[column.dataField];
    return dateFormatter.format(value);
      }
]]>


Thanks

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript