我在我的flex文件中的一個代碼中用作DataGrid中的labelFunction。如何通過FlexPMD糾正dymanic對象類型的異議?
當我運行FlexPMD
來執行代碼審查時,它會生成有關下面方法簽名中使用的動態類型對象的異議,並建議使用強類型對象。
public function getFormattedCreatedTime(item:Object, column:DataGridColumn):String {
var value:Date=item[column.dataField];
return dateFormatter.format(value);
}
有誰知道如何糾正它?
感謝