开发者

how to handle Flex PMD errors in flex?

while running the flex PMD, it is throwing some errors in the below line.

var strHandle:String = ConfigXMLModelLocator.getInstance().handle;

var appHandle:String = ConfigXMLModelLocator.getInstance().handle;

->Error displaying here. var call:Object=service.getEVAInfo(strHandle,appHandle);

Error:- UseObjectType. Do not use Object class. It is a bad practice to use the dynamic 开发者_运维知识库class Object. Prefer using strongly typed object, or marker interface in order to avoid silent compilation errors while refactoring.


If getEVAInfo returns an Object, there's nothing you can do about the Flex PMD error. Just ignore it as there's nothing wrong with using dynamic objects as long as you know what you are doing.

You can also use the //NOPMD comment to make PMD skip this line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜